wework / speccy

Well Spectually 🤓 Enforce quality rules on your OpenAPI 3.0.x specifications.
http://speccy.io
MIT License
824 stars 78 forks source link

Access to every item on operation's parameters object #467

Open bryanus1 opened 3 years ago

bryanus1 commented 3 years ago

I'm trying to create custom rules to openapi file, I need validate every reference on operation's parameters object but only parameters inside operation

` parameters:

HEADER REQUEST

- $ref: '#/components/parameters/x-request-id'
- $ref: '#/components/parameters/x-financial-id'
- $ref: '#/components/parameters/x-end-user-login'
- $ref: '#/components/parameters/x-end-user-request-date-time'
- $ref: '#/components/parameters/x-end-user-terminal'
- $ref: '#/components/parameters/x-end-user-last-logged-date-time'
- $ref: '#/components/parameters/x-jws-signature'
- $ref: '#/components/parameters/x-reverse'
- $ref: '#/components/parameters/x-requestId-to-reverse'
- $ref: '#/components/parameters/Accept-Language'
- $ref: '#/components/parameters/x-channel'`

How to make this rule?

philsturgeon commented 3 years ago

Hey. I was the original author of Speccy but I'm no longer with WeWork, and can assure you that nobody is maintaining this project, and nobody is going to help answer any questions.

Can you switch to using Spectral instead? It does everything I ever wanted Speccy to do, and more: https://github.com/stoplightio/spectral/