@redocly/openapi-core
Advanced tools
Comparing version 1.4.1 to 1.5.0
# @redocly/openapi-core | ||
## 1.5.0 | ||
### Minor Changes | ||
- Added new rule `array-parameter-serialization` to require that serialization parameters `style` and `explode` are present on array parameters. | ||
## 1.4.1 | ||
@@ -4,0 +10,0 @@ |
@@ -81,2 +81,3 @@ "use strict"; | ||
'spec-components-invalid-map-name': 'error', | ||
'array-parameter-serialization': 'error', | ||
}, | ||
@@ -105,2 +106,3 @@ oas3_1Rules: { | ||
'spec-components-invalid-map-name': 'error', | ||
'array-parameter-serialization': 'error', | ||
}, | ||
@@ -107,0 +109,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ "use strict"; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ "use strict"; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ "use strict"; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -57,2 +57,3 @@ "use strict"; | ||
const component_name_unique_1 = require("./component-name-unique"); | ||
const array_parameter_serialization_1 = require("./array-parameter-serialization"); | ||
exports.rules = { | ||
@@ -113,3 +114,4 @@ spec: spec_1.Spec, | ||
'component-name-unique': component_name_unique_1.ComponentNameUnique, | ||
'array-parameter-serialization': array_parameter_serialization_1.ArrayParameterSerialization, | ||
}; | ||
exports.preprocessors = {}; |
@@ -8,3 +8,3 @@ import { NodeType } from '.'; | ||
export type BuiltInOAS2RuleId = typeof builtInOAS2Rules[number]; | ||
declare const builtInOAS3Rules: readonly ["boolean-parameter-prefixes", "component-name-unique", "no-empty-servers", "no-example-value-and-externalValue", "no-invalid-media-type-examples", "no-server-example.com", "no-server-trailing-slash", "no-server-variables-empty-enum", "no-undefined-server-variable", "no-unused-components", "operation-4xx-problem-details-rfc7807", "request-mime-type", "response-contains-property", "response-mime-type", "spec-components-invalid-map-name"]; | ||
declare const builtInOAS3Rules: readonly ["boolean-parameter-prefixes", "component-name-unique", "no-empty-servers", "no-example-value-and-externalValue", "no-invalid-media-type-examples", "no-server-example.com", "no-server-trailing-slash", "no-server-variables-empty-enum", "no-undefined-server-variable", "no-unused-components", "operation-4xx-problem-details-rfc7807", "request-mime-type", "response-contains-property", "response-mime-type", "spec-components-invalid-map-name", "array-parameter-serialization"]; | ||
export type BuiltInOAS3RuleId = typeof builtInOAS3Rules[number]; | ||
@@ -11,0 +11,0 @@ declare const builtInAsync2Rules: readonly ["channels-kebab-case", "no-channel-trailing-slash"]; |
@@ -73,2 +73,3 @@ "use strict"; | ||
'spec-components-invalid-map-name', | ||
'array-parameter-serialization', | ||
]; | ||
@@ -75,0 +76,0 @@ const builtInAsync2Rules = ['channels-kebab-case', 'no-channel-trailing-slash']; |
@@ -153,2 +153,3 @@ export interface Oas3Definition { | ||
examples?: any[]; | ||
prefixItems?: Oas3_1Schema[]; | ||
}; | ||
@@ -155,0 +156,0 @@ export interface Oas3_1Definition extends Oas3Definition { |
{ | ||
"name": "@redocly/openapi-core", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,6 +6,6 @@ # openapi-core | ||
> [!IMPORTANT] | ||
The `openapi-core package` is designed for our internal use; the interfaces that are considered safe to use are documented below. | ||
Some of the function arguments are not documented below because they are not intended for public use. | ||
Avoid using any functions or features that are not documented below. | ||
If your use case is not documented below, please open an issue. | ||
> The `openapi-core package` is designed for our internal use; the interfaces that are considered safe to use are documented below. | ||
> Some of the function arguments are not documented below because they are not intended for public use. | ||
> Avoid using any functions or features that are not documented below. | ||
> If your use case is not documented below, please open an issue. | ||
@@ -269,2 +269,2 @@ ## Basic usage | ||
function stringifyYaml(obj: object): string; | ||
``` | ||
``` |
@@ -81,2 +81,3 @@ import type { PluginStyleguideConfig } from './types'; | ||
'spec-components-invalid-map-name': 'error', | ||
'array-parameter-serialization': 'error', | ||
}, | ||
@@ -105,2 +106,3 @@ oas3_1Rules: { | ||
'spec-components-invalid-map-name': 'error', | ||
'array-parameter-serialization': 'error', | ||
}, | ||
@@ -107,0 +109,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ import type { PluginStyleguideConfig } from './types'; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ import type { PluginStyleguideConfig } from './types'; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -69,2 +69,3 @@ import type { PluginStyleguideConfig } from './types'; | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -87,2 +88,3 @@ oas3_1Rules: { | ||
'response-mime-type': 'off', | ||
'array-parameter-serialization': 'off', | ||
}, | ||
@@ -89,0 +91,0 @@ async2Rules: { |
@@ -55,2 +55,3 @@ import { Oas3RuleSet } from '../../oas-types'; | ||
import { ComponentNameUnique } from './component-name-unique'; | ||
import { ArrayParameterSerialization } from './array-parameter-serialization'; | ||
@@ -112,4 +113,5 @@ export const rules: Oas3RuleSet<'built-in'> = { | ||
'component-name-unique': ComponentNameUnique, | ||
'array-parameter-serialization': ArrayParameterSerialization, | ||
}; | ||
export const preprocessors = {}; |
@@ -80,2 +80,3 @@ import { rootRedoclyConfigSchema, apiConfigSchema } from './portal-config-schema'; | ||
'spec-components-invalid-map-name', | ||
'array-parameter-serialization', | ||
] as const; | ||
@@ -82,0 +83,0 @@ |
@@ -159,2 +159,3 @@ export interface Oas3Definition { | ||
examples?: any[]; | ||
prefixItems?: Oas3_1Schema[]; | ||
}; | ||
@@ -161,0 +162,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2930243
554
50340
269
177