diff --git a/packages/typed-openapi/tests/samples/springboot.actuator.yaml b/packages/typed-openapi/tests/samples/springboot.actuator.yaml new file mode 100644 index 0000000..7ffe37a --- /dev/null +++ b/packages/typed-openapi/tests/samples/springboot.actuator.yaml @@ -0,0 +1,458 @@ +--- +openapi: 3.0.1 +info: + title: Spring Boot Actuator + description: Part of an OpenAPI spec as generated by Spring Boot Actuator + version: 1.0.0 +servers: +- url: "/" + description: Current URL +tags: +- name: Actuator + description: Monitor and interact + externalDocs: + description: Spring Boot Actuator Web API Documentation + url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/ +paths: + "/actuator": + get: + tags: + - Actuator + summary: Actuator root web endpoint + operationId: links + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + additionalProperties: + type: object + additionalProperties: + "$ref": "#/components/schemas/Link" + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + additionalProperties: + type: object + additionalProperties: + "$ref": "#/components/schemas/Link" + application/json: + schema: + type: object + additionalProperties: + type: object + additionalProperties: + "$ref": "#/components/schemas/Link" + "/actuator/threaddump": + get: + tags: + - Actuator + summary: Actuator web endpoint 'threaddump' + operationId: threaddump + responses: + '200': + description: OK + content: + text/plain;charset=UTF-8: + schema: + type: object + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/scheduledtasks": + get: + tags: + - Actuator + summary: Actuator web endpoint 'scheduledtasks' + operationId: scheduledtasks + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/prometheus": + get: + tags: + - Actuator + summary: Actuator web endpoint 'prometheus' + operationId: prometheus + responses: + '200': + description: OK + content: + text/plain;version=0.0.4;charset=utf-8: + schema: + type: object + application/openmetrics-text;version=1.0.0;charset=utf-8: + schema: + type: object + "/actuator/mappings": + get: + tags: + - Actuator + summary: Actuator web endpoint 'mappings' + operationId: mappings + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/loggers": + get: + tags: + - Actuator + summary: Actuator web endpoint 'loggers' + operationId: loggers + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/info": + get: + tags: + - Actuator + summary: Actuator web endpoint 'info' + operationId: info + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/heapdump": + get: + tags: + - Actuator + summary: Actuator web endpoint 'heapdump' + operationId: heapdump + responses: + '200': + description: OK + content: + application/octet-stream: + schema: + type: object + "/actuator/health": + get: + tags: + - Actuator + summary: Actuator web endpoint 'health' + operationId: health + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/health/**": + get: + tags: + - Actuator + summary: Actuator web endpoint 'health-path' + operationId: health-path + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/features": + get: + tags: + - Actuator + summary: Actuator web endpoint 'features' + operationId: features + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/env": + get: + tags: + - Actuator + summary: Actuator web endpoint 'env' + operationId: env + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/env/{toMatch}": + get: + tags: + - Actuator + summary: Actuator web endpoint 'env-toMatch' + operationId: env-toMatch + parameters: + - name: toMatch + in: path + required: true + schema: + type: string + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/configprops": + get: + tags: + - Actuator + summary: Actuator web endpoint 'configprops' + operationId: configprops + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/configprops/{prefix}": + get: + tags: + - Actuator + summary: Actuator web endpoint 'configprops-prefix' + operationId: configprops-prefix + parameters: + - name: prefix + in: path + required: true + schema: + type: string + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/conditions": + get: + tags: + - Actuator + summary: Actuator web endpoint 'conditions' + operationId: conditions + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/caches": + get: + tags: + - Actuator + summary: Actuator web endpoint 'caches' + operationId: caches + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + delete: + tags: + - Actuator + summary: Actuator web endpoint 'caches' + operationId: caches_2 + responses: + '200': + description: OK + content: + application/hal+json: + schema: + type: object + "/actuator/caches/{cache}": + get: + tags: + - Actuator + summary: Actuator web endpoint 'caches-cache' + operationId: caches-cache + parameters: + - name: cache + in: path + required: true + schema: + type: string + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + delete: + tags: + - Actuator + summary: Actuator web endpoint 'caches-cache' + operationId: caches-cache_2 + parameters: + - name: cache + in: path + required: true + schema: + type: string + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object + "/actuator/beans": + get: + tags: + - Actuator + summary: Actuator web endpoint 'beans' + operationId: beans + responses: + '200': + description: OK + content: + application/vnd.spring-boot.actuator.v3+json: + schema: + type: object + application/vnd.spring-boot.actuator.v2+json: + schema: + type: object + application/json: + schema: + type: object +components: + schemas: + Link: + type: object + properties: + href: + type: string + hreflang: + type: string + title: + type: string + type: + type: string + deprecation: + type: string + profile: + type: string + name: + type: string + templated: + type: boolean