Skip to content

Commit

Permalink
#OBS-I180: Validator Enhancement Draft 12 Support - Updated the testc…
Browse files Browse the repository at this point in the history
…ase fixtures
  • Loading branch information
manjudr committed Aug 29, 2024
1 parent df9d38d commit 9b752e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.sunbird.obsrv.preprocessor.fixture
object EventFixtures {

val VALID_SCHEMA = """{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"vehicleCode":{"type":"string"},"date":{"type":"string"},"dealer":{"type":"object","properties":{"dealerCode":{"type":"string"},"locationId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"additionalProperties":false,"required":["dealerCode","locationId"]},"metrics":{"type":"object","properties":{"bookingsTaken":{"type":"integer"},"deliveriesPromised":{"type":"integer"},"deliveriesDone":{"type":"integer"}},"additionalProperties":false}},"additionalProperties":false,"required":["id","vehicleCode","date"]}"""
val INVALID_SCHEMA = """{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":"false"}"""
val INVALID_SCHEMA = """{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":"unknown"}"""
val INVALID_SCHEMA_JSON = """{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://sunbird.obsrv.com/test.json","title":"Test Schema","description":"Test Schema","type":"object","properties":{"id":{"type":"string"},"vehicleCode":{"type":"string"},"date":{"type":"string"},"dealer":{"type":"object","properties":{"dealerCode":{"type":"string"},"locationId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["dealerCode","locationId"]},"metrics":{"type":"object","properties":{"bookingsTaken":{"type":"number"},"deliveriesPromised":{"type":"number"},"deliveriesDone":{"type":"number"}}}},"required":["id","vehicleCode","date","dealer","metrics"}"""


Expand Down

0 comments on commit 9b752e9

Please sign in to comment.