Skip to content

Commit

Permalink
Fix/252 (#253)
Browse files Browse the repository at this point in the history
* maxLevels reduced to 4, made a command-line option

* 0.23.3

* Update CHANGELOG.md

* Bump eslint
  • Loading branch information
ralfhandl authored Jun 30, 2023
1 parent 64eb5f1 commit c1b9477
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 370 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [0.23.3] - 2023-06-30

### Added

- Add cli support for maximum level of containment navigation properties using `--levels`

### Fixed

- Reduced default maximum level of containment navigation properties from 5 to 4

## [0.23.2] - 2023-06-16

### Fixed
Expand Down
334 changes: 0 additions & 334 deletions examples/containment.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4559,340 +4559,6 @@
}
}
},
"/Folders('{Name}')/Folders('{Name_1}')/Folders('{Name_2}')/Folders('{Name_3}')/Folders('{Name_4}')": {
"parameters": [
{
"description": "key: Name",
"in": "path",
"name": "Name",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_1",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_2",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_3",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_4",
"required": true,
"schema": {
"type": "string"
}
}
],
"get": {
"summary": "Get entity from related Folders by key",
"tags": [
"Folders"
],
"parameters": [
{
"name": "select",
"description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
"in": "query",
"explode": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"Name",
"Description"
]
}
}
},
{
"name": "expand",
"description": "Expand related entities, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
"in": "query",
"explode": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"*",
"Folders"
]
}
}
}
],
"responses": {
"200": {
"description": "Retrieved entity",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Containment.Folder"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/error"
}
}
},
"patch": {
"summary": "Update entity in related Folders",
"tags": [
"Folders"
],
"requestBody": {
"description": "New property values",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Containment.Folder-update"
}
}
}
},
"responses": {
"204": {
"description": "Success"
},
"4XX": {
"$ref": "#/components/responses/error"
}
}
},
"delete": {
"summary": "Delete entity from related Folders",
"tags": [
"Folders"
],
"responses": {
"204": {
"description": "Success"
},
"4XX": {
"$ref": "#/components/responses/error"
}
}
}
},
"/Folders('{Name}')/Folders('{Name_1}')/Folders('{Name_2}')/Folders('{Name_3}')/Folders('{Name_4}')/Folders": {
"parameters": [
{
"description": "key: Name",
"in": "path",
"name": "Name",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_1",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_2",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_3",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "key: Name",
"in": "path",
"name": "Name_4",
"required": true,
"schema": {
"type": "string"
}
}
],
"get": {
"summary": "Get entities from related Folders",
"tags": [
"Folders"
],
"parameters": [
{
"$ref": "#/components/parameters/top"
},
{
"$ref": "#/components/parameters/skip"
},
{
"$ref": "#/components/parameters/search"
},
{
"name": "filter",
"description": "Filter items by property values, see [Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
"in": "query",
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/count"
},
{
"name": "orderby",
"description": "Order items by property values, see [Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
"in": "query",
"explode": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"Name",
"Name desc",
"Description",
"Description desc"
]
}
}
},
{
"name": "select",
"description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
"in": "query",
"explode": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"Name",
"Description"
]
}
}
},
{
"name": "expand",
"description": "Expand related entities, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
"in": "query",
"explode": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"*",
"Folders"
]
}
}
}
],
"responses": {
"200": {
"description": "Retrieved entities",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Collection of Folder",
"properties": {
"@count": {
"$ref": "#/components/schemas/count"
},
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Containment.Folder"
}
}
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/error"
}
}
},
"post": {
"summary": "Add new entity to related Folders",
"tags": [
"Folders"
],
"requestBody": {
"description": "New entity",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Containment.Folder-create"
}
}
}
},
"responses": {
"201": {
"description": "Created entity",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Containment.Folder"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/error"
}
}
}
},
"/Headers": {
"get": {
"summary": "Get entities from Headers",
Expand Down
Loading

0 comments on commit c1b9477

Please sign in to comment.