Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Validating the x-"pattern_fields" #389

Closed
srinivascodes opened this issue May 31, 2016 · 1 comment
Closed

Validating the x-"pattern_fields" #389

srinivascodes opened this issue May 31, 2016 · 1 comment

Comments

@srinivascodes
Copy link

I am trying to put some restrictions on the patterned objects(that start with x-) like for e.g x-apiId the valid value should be alphanumeric pattern like [a-z][1-9][a-z]. Where should I make the changes so that when I type in the editor it should give me error if I missed this field and also if I entered wrong value in this field? What are files where changes are required to make this possible? I have found files like schema.json, validator.js where I think changes will be require etc. Please kindly let me know.

@whitlockjc
Copy link
Member

I agree this is a good idea but I don't see this happening in swagger-tools. sway already provides this and it is the successor to swagger-tools' API, including its validation. Per #335, we will be ceasing feature additions in swagger-tools and instead will do this in sway and sway-connect. Since this work is already done in sway, I will close this issue.

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

No branches or pull requests

2 participants