Skip to main content

const with primitives

GET 

/const

Schema:

type: object
properties:
type:
type: string
const: example
title: Example
description: |
This is an example
quality:
type: string
oneOf:
- const: good
title: Good
description: |
This is a good example
- const: bad
title: Bad
description: |
This is a bad example
tags:
type: array
items:
anyOf:
- const: dog
title: Dog
description: |
This is a dog
- const: cat
title: Cat
description: |
This is a cat
required:
- type
- quality

Responses

Successful response