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

OpenAPI v3: Validation for the value of Link#operationId #308

Closed
tfesenko opened this issue May 19, 2017 · 2 comments
Closed

OpenAPI v3: Validation for the value of Link#operationId #308

tfesenko opened this issue May 19, 2017 · 2 comments

Comments

@tfesenko
Copy link
Member

tfesenko commented May 19, 2017

Related to #307

Link#operationId is

the name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive with the operationRef field. Relative operationRef values MAY be used to locate an existing Operation Object in the OAS.

Validation should verify that an operation with operationIds exists.

To clarify: can we reference operationIds from external models?
Answer: No, only local elements.

In the case of an operationId, it MUST be unique and resolved in the scope of the OAS document

@ghillairet
Copy link
Member

@tfesenko I think this one can be closed.

Behaviour seen on master

sc

@tfesenko
Copy link
Member Author

tfesenko commented Sep 28, 2017

@ghillairet , thanks!
I can see a validation error too. The current error message is Invalid object reference, the referenced object is not of expected type, it can be improved and provide information that an operation with this operationId does not exist at all.

screen shot 2017-09-28 at 9 05 59 am

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

3 participants