We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Spectral alert oas3-unused-component warning.
To Reproduce
index.yaml
openapi: 3.1.0 info: title: Test version: 1.0.0 paths: '/': description: test get: operationId: test description: test responses: '200': description: OK content: application/json: schema: $ref: './common.yaml#/components/schemas/ResponseType'
common.yaml
openapi: 3.1.0 info: title: Common schema definition description: test version: 1.0.0 paths: {} components: schemas: # Spectral lint warning "Potentially unused component has been detected." ResponseType: type: string example: test description: test
spectral lint index.yaml common.yaml
/tmp/test/common.yaml 10:18 warning oas3-unused-component Potentially unused component has been detected. components.schemas.ResponseType
Expected behavior Component ResponseType used in index.yaml. Spectral can't alert oas3-unused-component warning.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Spectral alert oas3-unused-component warning.
To Reproduce
index.yaml
common.yaml
Expected behavior
Component ResponseType used in index.yaml. Spectral can't alert oas3-unused-component warning.
The text was updated successfully, but these errors were encountered: