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) #15654

Closed
KasunAratthanage opened this issue Jun 11, 2019 · 3 comments
Labels
Team/StandardLibs All Ballerina standard libraries Type/NewFeature

Comments

@KasunAratthanage
Copy link

KasunAratthanage commented Jun 11, 2019

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.

@Asitha
Copy link
Contributor

Asitha commented Jun 13, 2019

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

@KasunAratthanage KasunAratthanage changed the title Verify schema validation in JSON Schema and XSD - (Request/response schema validator in Ballerina) Implement schema validation in JSON Schema - (Request/response schema validator in Ballerina) Jun 14, 2019
@riyafa riyafa added Team/StandardLibs All Ballerina standard libraries Component/Messaging labels Jun 28, 2019
@riyafa
Copy link
Contributor

riyafa commented Jun 28, 2019

This can be achieved by providing data binding support for JMS

@daneshk
Copy link
Member

daneshk commented Aug 5, 2019

Closing this issue. Since we moved JMS module to https://github.com/wso2-ballerina/module-jms repository.
Please refer wso2-ballerina/module-jms#10 to get latest updates of this issue

@daneshk daneshk closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/StandardLibs All Ballerina standard libraries Type/NewFeature
Projects
None yet
Development

No branches or pull requests

4 participants