Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement schema validation in JSON Schema - (Request/response schema validator in Ballerina) #6407

Open
daneshk opened this issue Aug 5, 2019 · 2 comments

Comments

@daneshk
Copy link
Member

daneshk commented Aug 5, 2019

Issue by KasunAratthanage
Tuesday Jun 11, 2019 at 05:56 GMT
Originally opened as ballerina-platform/ballerina-lang#15654


Description:
Currently ballerina does not have an approach to validate requests and responses using JSON schema.

Example: Schema validation use cases

  • The schema is created from the url and its stored contents are validated against itself.
  • An URL can point to a local file, where sub folder, current working directory.
  • Schema created with a Map and call to json parse etc.

Validating request/response based on a predefined json or xml API schema is helpful to ensure whether the user have sent the request according to the schema and also to ensure whether the back-end have sent the correct response to the request.

@daneshk
Copy link
Member Author

daneshk commented Aug 5, 2019

Comment by Asitha
Thursday Jun 13, 2019 at 11:59 GMT


@KasunAratthanage Shall we open a separate issue to track XSD based validation?

@daneshk
Copy link
Member Author

daneshk commented Aug 5, 2019

Comment by riyafa
Friday Jun 28, 2019 at 04:48 GMT


This can be achieved by providing data binding support for JMS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants