brechtvdv / third-party-payment-maas-specification

Specification for third party payments between local government and MaaS/mobility providers
MIT License
0 stars 1 forks source link

Provide JSON schema for subsidy and trip data #4

Open huksley opened 4 years ago

huksley commented 4 years ago

It would be great to have JSON schema which we can use to automatically validate if JSON have a correct structure (not validate if trip is eligible for subsidy)

brechtvdv commented 4 years ago

Thanks for the suggestion, pull requests are always welcome :-)

We normally use SHACL to validate if the data contains all the expected data. Then multiple (Linked Data) formats are possible.

huksley commented 4 years ago

Considering mobility providers could use different languages and frameworks, is it possible to validate using SHACL on Android, iOS, Java and NodeJS?