-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: respect readOnly and writeOnly properties for required checks (#130
) * fix: respect readOnly and writeOnly properties for required checks * Update breaking-changes.md * re worked * fix description * additional use-cases for readonly/writeonly * update breaking-changes doc * comment Co-authored-by: Reuven <rh@tufin.com>
- Loading branch information
Showing
21 changed files
with
1,101 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ components: | |
required: | ||
- id | ||
- name | ||
- nickname | ||
- tag | ||
properties: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Test Inc. | ||
version: "1.0" | ||
servers: | ||
- url: https://localhost:9080 | ||
paths: | ||
/api/atlas/v1.0/groups: | ||
post: | ||
operationId: createOneGroup | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: Creates one group. | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Create One Group | ||
/api/atlas/v1.0/groups/{groupId}: | ||
get: | ||
operationId: returnOneGroup | ||
parameters: | ||
- $ref: "#/components/parameters/groupId" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Return One Group | ||
components: | ||
parameters: | ||
groupId: | ||
in: path | ||
name: groupId | ||
required: true | ||
schema: | ||
type: string | ||
schemas: | ||
GroupView: | ||
type: object | ||
properties: | ||
created: | ||
type: string | ||
format: date-time | ||
readOnly: true | ||
id: | ||
type: string | ||
readOnly: true | ||
name: | ||
type: string | ||
required: | ||
- name |
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.1 | ||
info: | ||
title: Test Inc. | ||
version: "1.0" | ||
servers: | ||
- url: https://localhost:9080 | ||
paths: | ||
/api/atlas/v1.0/groups: | ||
post: | ||
operationId: createOneGroup | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: Creates one project. | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Create One Group | ||
/api/atlas/v1.0/groups/{groupId}: | ||
get: | ||
operationId: returnOneGroup | ||
parameters: | ||
- $ref: "#/components/parameters/groupId" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Return One Group | ||
components: | ||
parameters: | ||
groupId: | ||
in: path | ||
name: groupId | ||
required: true | ||
schema: | ||
type: string | ||
schemas: | ||
GroupView: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
required: | ||
- name |
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,63 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Test Inc. | ||
version: "1.0" | ||
servers: | ||
- url: https://localhost:9080 | ||
paths: | ||
/api/atlas/v1.0/groups: | ||
post: | ||
operationId: createOneGroup | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: Creates one project. | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Create One Group | ||
/api/atlas/v1.0/groups/{groupId}: | ||
get: | ||
operationId: returnOneGroup | ||
parameters: | ||
- $ref: "#/components/parameters/groupId" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Return One Group | ||
components: | ||
parameters: | ||
groupId: | ||
in: path | ||
name: groupId | ||
required: true | ||
schema: | ||
type: string | ||
schemas: | ||
GroupView: | ||
type: object | ||
properties: | ||
created: | ||
type: string | ||
format: date-time | ||
readOnly: true | ||
id: | ||
type: string | ||
readOnly: true | ||
name: | ||
type: string | ||
required: | ||
- created | ||
- id | ||
- name |
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,63 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Test Inc. | ||
version: "1.0" | ||
servers: | ||
- url: https://localhost:9080 | ||
paths: | ||
/api/atlas/v1.0/groups: | ||
post: | ||
operationId: createOneGroup | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: Creates one project. | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Create One Group | ||
/api/atlas/v1.0/groups/{groupId}: | ||
get: | ||
operationId: returnOneGroup | ||
parameters: | ||
- $ref: "#/components/parameters/groupId" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Return One Group | ||
components: | ||
parameters: | ||
groupId: | ||
in: path | ||
name: groupId | ||
required: true | ||
schema: | ||
type: string | ||
schemas: | ||
GroupView: | ||
type: object | ||
properties: | ||
created: | ||
type: string | ||
format: date-time | ||
readOnly: true | ||
id: | ||
type: string | ||
readOnly: true | ||
name: | ||
type: string | ||
required: | ||
- created | ||
- id | ||
- name |
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,65 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Test Inc. | ||
version: "1.0" | ||
servers: | ||
- url: https://localhost:9080 | ||
paths: | ||
/api/atlas/v1.0/groups: | ||
post: | ||
operationId: createOneGroup | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: Creates one group. | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Create One Group | ||
/api/atlas/v1.0/groups/{groupId}: | ||
get: | ||
operationId: returnOneGroup | ||
parameters: | ||
- $ref: "#/components/parameters/groupId" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GroupView" | ||
description: OK | ||
summary: Return One Group | ||
components: | ||
parameters: | ||
groupId: | ||
in: path | ||
name: groupId | ||
required: true | ||
schema: | ||
type: string | ||
schemas: | ||
GroupView: | ||
type: object | ||
properties: | ||
created: | ||
type: string | ||
format: date-time | ||
readOnly: true | ||
id: | ||
type: string | ||
readOnly: true | ||
name: | ||
type: string | ||
test: | ||
type: string | ||
writeOnly: true | ||
required: | ||
- name | ||
- test |
Oops, something went wrong.