cybertk / ramlev

Validate/Verify examples in RAML
Other
30 stars 5 forks source link

ramlev validation challenge #20

Closed eswarantg closed 9 years ago

eswarantg commented 9 years ago

I am looking to use ramlev in my project

Have uploaded a working sample project in https://github.com/eswarantg/sampleRestIf_RAML

The goal here is to organize the Interface and schema files across folders. using commandline : ramlev $1 -f $BASE_URL -d "$SCHEMA_DIR"

I get the following output /doctors ✓ GET response 200 ✓ GET response 204 ✓ POST request ✓ POST response 209

/doctors/{doctorId} ✓ GET response 200 ✓ GET response 404 ✓ POST request ✓ POST response 200 ✓ POST response 209 ✓ POST response 404 ✓ DELETE response 200 ✓ DELETE response 404

/patients ✓ GET response 200 ✓ GET response 204

/patients/{patientId} ✓ GET response 200 ✓ GET response 404

16 passing (16ms)

I expect the GET "/patients/{patientId}" to fail due to the wrong data { "ID" : "ERR", "name" : "PQRS", "sex" : "Male", "diagnosis" : [ "Fracture in left leg" ,"15 days rest" ] }

ID is integer type.

I bet i am missing something here.

robertlevy commented 9 years ago

any luck on this?

cybertk commented 9 years ago

I saw there is no test for GET "/patients/{patientId}" with wrong data