-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Expected Behavior
Validation of yaml/json file should be ok.
Minimal Example Spec
Example of yaml that fails to validate:
File:
type: object
properties:
absoluteFile:
$ref: '#/components/schemas/File'
absolutePath:
type: string
canonicalFile:
$ref: '#/components/schemas/File'
file:
type: boolean
Actual Behavior
prance validate .\Tests_API\openapi.yaml
ERROR in ".\Tests_API\openapi.yaml" [ResolutionError]: Recursion reached limit of 1 trying to resolve "file:///C:/Tests_API/openapi.json#/components/schemas/File"!
file:///C:/Tests_API/openapi.json#/components/schemas/File
file:///C:/Tests_API/openapi.json#/components/schemas/File
Steps to Reproduce
Environment
- OS: Win 10
- Python version: 3.8.5
- Swagger/OpenAPI version used: 3.0.3
- Backend: (flex, swagger-spec-validator or openapi-spec-validator)
leonpros, eldaduzman, FCncdn, samirbraga, cic1988 and 2 more
Metadata
Metadata
Assignees
Labels
No labels