This is a test project to demonstrate the issue with oneOf in OpenAPI 3.0.2.
- Clone this repository
- Run
npm install
- Run
npm run server:rest
- Run
npm run dev
- Open http://localhost:3008/graphql in your browser
- Launch a query as follows
query MyQuery {
pets_by_id(id: "1") {
petType
name
... on Dog {
dog_exclusive
}
... on Cat {
cat_exclusive
}
}
}
- Observe the response