speccy icon indicating copy to clipboard operation
speccy copied to clipboard

Access to every item on operation's parameters object

Open bryanus1 opened this issue 3 years ago • 1 comments

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?

bryanus1 avatar Aug 26 '21 17:08 bryanus1

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/

philsturgeon avatar Sep 09 '21 09:09 philsturgeon