swagger-3.0

Cannot reference a component schema defined in a separate file in Swagger

无人久伴 提交于 2020-01-24 15:05:28
问题 I have the following api documentation: swagger: "3.0" info: version: 0.0.1 title: Test API paths: /users: get: summary: Get all registered users produces: - application/json responses: 200: description: Users successfully returned 403: description: User not authorised to call this API schema: $ref: 'components.yaml#/components/schemas/AuthError' Where the AuthError schema is defined in a separate yaml file called components.yaml: components: schemas: AuthError: type: object properties: error

Cannot reference a component schema defined in a separate file in Swagger

荒凉一梦 提交于 2020-01-24 15:05:18
问题 I have the following api documentation: swagger: "3.0" info: version: 0.0.1 title: Test API paths: /users: get: summary: Get all registered users produces: - application/json responses: 200: description: Users successfully returned 403: description: User not authorised to call this API schema: $ref: 'components.yaml#/components/schemas/AuthError' Where the AuthError schema is defined in a separate yaml file called components.yaml: components: schemas: AuthError: type: object properties: error

spring boot 2.2 cannot serve swagger-resources when used with springdoc-openapi

雨燕双飞 提交于 2019-12-24 08:04:03
问题 https://www.dariawan.com/tutorials/spring/documenting-spring-boot-rest-api-springdoc-openapi-3/ According to this, using springdoc openapi dependencies should pull in swagger3 I am using <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>1.2.15</version> </dependency> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-webmvc-core</artifactId> <version>1.2.15</version> </dependency> The swaggerui page looks for swagger