-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10317 from swagger-api/swos_196
test for invalid model name in html2 genetator
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
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
56 changes: 56 additions & 0 deletions
56
modules/swagger-codegen/src/test/resources/3_0_0/swos196.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,56 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Test in html2 | ||
paths: | ||
/access-profile: | ||
post: | ||
operationId: createProfile | ||
summary: Create Profile | ||
description: create Profile Html2 | ||
tags: | ||
- Access Profile | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/access-profile" | ||
responses: | ||
'200': | ||
description: success | ||
content: | ||
application/json: | ||
examples: | ||
foo: | ||
value: | ||
{ | ||
"id": 0 | ||
} | ||
default: | ||
description: unexpected error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/Error" | ||
components: | ||
schemas: | ||
access-profile: | ||
type: "object" | ||
properties: | ||
description: | ||
type: "string" | ||
companyId: | ||
type: "string" | ||
status: | ||
type: "boolean" | ||
permissionId: | ||
type: "string" | ||
format: "uuid" | ||
Error: | ||
type: "object" | ||
properties: | ||
code: | ||
type: "integer" | ||
format: "int32" | ||
message: | ||
type: "string" |