Skip to content

Instantly share code, notes, and snippets.

@rhamiltonsf
rhamiltonsf / pom.xml
Last active September 20, 2021 22:25
[spring/spring-boot] Test POM
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openapi</groupId>
<artifactId>spec-test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
@rhamiltonsf
rhamiltonsf / api.yaml
Last active September 20, 2021 22:14
[spring/spring-boot] requestBodies can accept object schemas if they are inline
openapi: 3.0.1
info:
title: Example API
version: '1.0'
paths:
/test:
post:
requestBody:
content:
application/json:
@rhamiltonsf
rhamiltonsf / api.yaml
Last active September 20, 2021 22:16
[spring/spring-boot] This spec will generate code correctly
openapi: 3.0.1
info:
title: Example API
version: '1.0'
paths:
/test:
post:
requestBody:
$ref: '#/components/requestBodies/setupReq'
responses:
@rhamiltonsf
rhamiltonsf / api.yaml
Last active September 20, 2021 22:13
[spring/spring-boot] UNKOWN_BASE_TYPE error
openapi: 3.0.1
info:
title: Example API
version: '1.0'
paths:
/test:
post:
requestBody:
$ref: '#/components/requestBodies/setupReq'
responses: