-
Notifications
You must be signed in to change notification settings - Fork 68
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
Reuven
committed
Feb 1, 2024
1 parent
7b00d02
commit aa4a488
Showing
23 changed files
with
261 additions
and
143 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
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
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: Some API | ||
version: 1.0.0 | ||
description: Some desc | ||
contact: | ||
name: '#onetwothree' | ||
url: 'https://test.com' | ||
servers: | ||
- description: local | ||
url: 'http://localhost:8080' | ||
tags: | ||
- name: One | ||
- name: Two | ||
paths: | ||
'/admin/v0/abc/{id}': | ||
get: | ||
parameters: | ||
- $ref: '#/components/parameters/tenant_id' | ||
- $ref: '#/components/parameters/id' | ||
summary: Get abc | ||
tags: | ||
- Two | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/abc' | ||
components: | ||
schemas: | ||
abc: | ||
title: abc | ||
x-stoplight: | ||
id: lzwt7se3t6ab2 | ||
type: object | ||
properties: | ||
details: | ||
type: string | ||
|
||
parameters: | ||
tenant_id: | ||
schema: | ||
type: string | ||
in: header | ||
required: true | ||
name: tenant-id | ||
description: 'Tenant IDs' | ||
id: | ||
name: id | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
description: 'The ID' |
File renamed without changes.
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
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
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
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
/* | ||
Package allof replaces allOf by a merged equivalent | ||
This is helpful to improve breaking changes accuracy | ||
*/ | ||
package allof |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package flatten | ||
package allof | ||
|
||
import ( | ||
"errors" | ||
|
2 changes: 1 addition & 1 deletion
2
flatten/merge_allof_spec.go → flatten/allof/merge_allof_spec.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package flatten | ||
package allof | ||
|
||
import ( | ||
"github.com/getkin/kin-openapi/openapi3" | ||
|
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
Oops, something went wrong.