-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Fałdrowicz
committed
Sep 6, 2024
1 parent
8fd58c7
commit d6f853e
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
components/openapi/src/it/resources/enrichers-with-optional-fields.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
openapi: "3.0.0" | ||
info: | ||
title: Simple API overview | ||
version: 2.0.0 | ||
paths: | ||
/customer: | ||
post: | ||
summary: Returns ComponentsBykeys. | ||
requestBody: | ||
description: | ||
Keys of the Customers. | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/MultiKeys' | ||
responses: | ||
'201': | ||
description: | ||
OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Customer' | ||
|
||
components: | ||
schemas: | ||
MultiKeys: | ||
type: array | ||
minItems: 1 | ||
items: | ||
type: object | ||
properties: | ||
primaryKey: | ||
type: string | ||
additionalKey: | ||
type: string | ||
validFor: | ||
type: integer | ||
format: int64 | ||
minimum: 1 | ||
maximum: 2592000 | ||
required: | ||
- primaryKey | ||
- additionalKey | ||
Customer: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
category: | ||
type: string | ||
id: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters