@ibm-cloud/openapi-ruleset-utilities
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,1 +1,8 @@ | ||
# @ibm-cloud/openapi-ruleset-utilities [1.3.0](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset-utilities@1.2.1...@ibm-cloud/openapi-ruleset-utilities@1.3.0) (2023-09-08) | ||
### Features | ||
* **ibm-no-nullable-properties:** add new 'ibm-no-nullable-properties' rule ([#626](https://github.com/IBM/openapi-validator/issues/626)) ([7e090aa](https://github.com/IBM/openapi-validator/commit/7e090aabbf51cc1a8d31fcfdfd9ab8056c2fa213)) | ||
## @ibm-cloud/openapi-ruleset-utilities [1.2.1](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset-utilities@1.2.0...@ibm-cloud/openapi-ruleset-utilities@1.2.1) (2023-08-21) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@ibm-cloud/openapi-ruleset-utilities", | ||
"description": "Programmatic utility functions for creating Spectral-formatted OpenAPI Rulesets", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "private": false, |
@@ -15,2 +15,5 @@ /** | ||
// A collection of locations of top-level requestBody schemas. | ||
const requestBodySchemas = [`${operations[0]}[requestBody].content[*].schema`]; | ||
// A collection of locations where a JSON Schema object can be *used*. | ||
@@ -26,3 +29,3 @@ // Note that this does not include "components.schemas" to avoid duplication. | ||
`${operations[0]}.responses[*].headers[*].schema`, | ||
`${operations[0]}[requestBody].content[*].schema`, | ||
...requestBodySchemas, | ||
]; | ||
@@ -52,3 +55,3 @@ | ||
const unresolvedRequestBodySchemas = [ | ||
`${operations[0]}.requestBody.content[*].schema`, | ||
...requestBodySchemas, | ||
`$.components.requestBodies[*].content[*].schema`, | ||
@@ -91,2 +94,3 @@ ]; | ||
paths, | ||
requestBodySchemas, | ||
responseSchemas, | ||
@@ -93,0 +97,0 @@ schemas, |
@@ -11,3 +11,4 @@ /** | ||
* | ||
* Nested schemas include property schemas (for an object schema), items schemas (for an array | ||
* Nested schemas include property schemas, 'additionalProperties', and 'patternProperties' schemas | ||
* (for an object schema), 'items' schemas (for an array | ||
* schema), plus all nested schemas of those schemas. | ||
@@ -14,0 +15,0 @@ * |
@@ -12,4 +12,5 @@ /** | ||
* | ||
* Subschemas include property schemas (for an object schema), item schemas (for an array schema), | ||
* and applicator schemas (such as those in an `allOf` or `oneOf` property), plus all subschemas | ||
* Subschemas include property schemas, 'additionalProperties', and 'patternProperties' schemas | ||
* (for an object schema), 'items' schemas (for an array schema), and applicator schemas | ||
* (such as those in an 'allOf', 'anyOf' or 'oneOf' property), plus all subschemas | ||
* of those schemas. | ||
@@ -16,0 +17,0 @@ * |
116067
3328