@redocly/openapi-core
Advanced tools
Comparing version 1.25.5 to 1.25.6
# @redocly/openapi-core | ||
## 1.25.6 | ||
### Patch Changes | ||
- Changed the `x-operation` extension in Arazzo, enabling users to make requests with this extension without an API description file. | ||
- Removed support of the `x-assert` extension for Arazzo. | ||
- Removed the support of the `x-parameters` extension for Arazzo description files. | ||
## 1.25.5 | ||
@@ -4,0 +12,0 @@ |
@@ -208,3 +208,2 @@ "use strict"; | ||
switch (typeName) { | ||
case 'Root.x-parameters_items': | ||
case 'Root.workflows_items.parameters_items': | ||
@@ -211,0 +210,0 @@ case 'Root.workflows_items.steps_items.parameters_items': |
@@ -24,4 +24,2 @@ "use strict"; | ||
const DEFAULT_PROJECT_PLUGIN_PATHS = ['@theme/plugin.js', '@theme/plugin.cjs', '@theme/plugin.mjs']; | ||
// Workaround for dynamic imports being transpiled to require by Typescript: https://github.com/microsoft/TypeScript/issues/43329#issuecomment-811606238 | ||
const _importDynamic = new Function('modulePath', 'return import(modulePath)'); | ||
// Cache instantiated plugins during a single execution | ||
@@ -97,2 +95,4 @@ const pluginsCache = new Map(); | ||
else { | ||
// Workaround for dynamic imports being transpiled to require by Typescript: https://github.com/microsoft/TypeScript/issues/43329#issuecomment-811606238 | ||
const _importDynamic = new Function('modulePath', 'return import(modulePath)'); | ||
// you can import both cjs and mjs | ||
@@ -99,0 +99,0 @@ const mod = await _importDynamic((0, url_1.pathToFileURL)(absolutePluginPath).href); |
@@ -12,3 +12,2 @@ "use strict"; | ||
sourceDescriptions: 'SourceDescriptions', | ||
'x-parameters': 'Parameters', | ||
workflows: 'Workflows', | ||
@@ -154,3 +153,2 @@ components: 'Components', | ||
'x-expect': 'ExpectSchema', | ||
'x-assert': { type: 'string' }, | ||
'x-operation': 'ExtendedOperation', | ||
@@ -188,10 +186,27 @@ requestBody: 'RequestBody', | ||
properties: { | ||
path: { type: 'string' }, | ||
url: { type: 'string' }, | ||
method: { | ||
enum: ['get', 'post', 'put', 'delete', 'patch'], | ||
enum: [ | ||
'get', | ||
'post', | ||
'put', | ||
'delete', | ||
'patch', | ||
'GET', | ||
'POST', | ||
'PUT', | ||
'DELETE', | ||
'PATCH', | ||
'options', | ||
'OPTIONS', | ||
'head', | ||
'HEAD', | ||
'trace', | ||
'TRACE', | ||
'connect', | ||
'CONNECT', | ||
], | ||
}, | ||
sourceDescriptionName: { type: 'string' }, | ||
serverUrl: { type: 'string' }, | ||
}, | ||
required: ['path', 'method'], | ||
required: ['url', 'method'], | ||
}; | ||
@@ -198,0 +213,0 @@ const ExpectSchema = { |
@@ -31,6 +31,4 @@ export interface InfoObject { | ||
export interface ExtendedOperation { | ||
path: string; | ||
method: 'get' | 'post' | 'put' | 'delete' | 'patch'; | ||
sourceDescriptionName?: string; | ||
serverUrl?: string; | ||
url: string; | ||
method: 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace' | 'connect' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT'; | ||
} | ||
@@ -97,3 +95,2 @@ export interface ExpectSchema { | ||
'x-expect'?: ExpectSchema; | ||
'x-assert'?: string; | ||
'x-operation'?: ExtendedOperation; | ||
@@ -129,3 +126,2 @@ requestBody?: RequestBody; | ||
sourceDescriptions: SourceDescription[]; | ||
'x-parameters'?: Parameter[]; | ||
workflows: Workflow[]; | ||
@@ -132,0 +128,0 @@ components?: { |
{ | ||
"name": "@redocly/openapi-core", | ||
"version": "1.25.5", | ||
"version": "1.25.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -308,3 +308,2 @@ import { BaseResolver, resolveDocument, makeRefId, makeDocumentFromString } from './resolve'; | ||
switch (typeName) { | ||
case 'Root.x-parameters_items': | ||
case 'Root.workflows_items.parameters_items': | ||
@@ -311,0 +310,0 @@ case 'Root.workflows_items.steps_items.parameters_items': |
@@ -43,5 +43,2 @@ import * as path from 'path'; | ||
// Workaround for dynamic imports being transpiled to require by Typescript: https://github.com/microsoft/TypeScript/issues/43329#issuecomment-811606238 | ||
const _importDynamic = new Function('modulePath', 'return import(modulePath)'); | ||
// Cache instantiated plugins during a single execution | ||
@@ -155,2 +152,4 @@ const pluginsCache: Map<string, Plugin> = new Map(); | ||
} else { | ||
// Workaround for dynamic imports being transpiled to require by Typescript: https://github.com/microsoft/TypeScript/issues/43329#issuecomment-811606238 | ||
const _importDynamic = new Function('modulePath', 'return import(modulePath)'); | ||
// you can import both cjs and mjs | ||
@@ -157,0 +156,0 @@ const mod = await _importDynamic(pathToFileURL(absolutePluginPath).href); |
@@ -10,3 +10,2 @@ import { mapOf, type NodeType, listOf } from '.'; | ||
sourceDescriptions: 'SourceDescriptions', | ||
'x-parameters': 'Parameters', | ||
workflows: 'Workflows', | ||
@@ -149,3 +148,2 @@ components: 'Components', | ||
'x-expect': 'ExpectSchema', | ||
'x-assert': { type: 'string' }, | ||
'x-operation': 'ExtendedOperation', | ||
@@ -183,10 +181,27 @@ requestBody: 'RequestBody', | ||
properties: { | ||
path: { type: 'string' }, | ||
url: { type: 'string' }, | ||
method: { | ||
enum: ['get', 'post', 'put', 'delete', 'patch'], | ||
enum: [ | ||
'get', | ||
'post', | ||
'put', | ||
'delete', | ||
'patch', | ||
'GET', | ||
'POST', | ||
'PUT', | ||
'DELETE', | ||
'PATCH', | ||
'options', | ||
'OPTIONS', | ||
'head', | ||
'HEAD', | ||
'trace', | ||
'TRACE', | ||
'connect', | ||
'CONNECT', | ||
], | ||
}, | ||
sourceDescriptionName: { type: 'string' }, | ||
serverUrl: { type: 'string' }, | ||
}, | ||
required: ['path', 'method'], | ||
required: ['url', 'method'], | ||
}; | ||
@@ -193,0 +208,0 @@ const ExpectSchema: NodeType = { |
@@ -40,6 +40,22 @@ export interface InfoObject { | ||
export interface ExtendedOperation { | ||
path: string; | ||
method: 'get' | 'post' | 'put' | 'delete' | 'patch'; | ||
sourceDescriptionName?: string; | ||
serverUrl?: string; | ||
url: string; | ||
method: | ||
| 'get' | ||
| 'post' | ||
| 'put' | ||
| 'delete' | ||
| 'patch' | ||
| 'head' | ||
| 'options' | ||
| 'trace' | ||
| 'connect' | ||
| 'GET' | ||
| 'POST' | ||
| 'PUT' | ||
| 'DELETE' | ||
| 'PATCH' | ||
| 'HEAD' | ||
| 'OPTIONS' | ||
| 'TRACE' | ||
| 'CONNECT'; | ||
} | ||
@@ -119,3 +135,2 @@ | ||
'x-expect'?: ExpectSchema; | ||
'x-assert'?: string; | ||
'x-operation'?: ExtendedOperation; | ||
@@ -153,3 +168,2 @@ requestBody?: RequestBody; | ||
sourceDescriptions: SourceDescription[]; | ||
'x-parameters'?: Parameter[]; | ||
workflows: Workflow[]; | ||
@@ -156,0 +170,0 @@ components?: { |
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
3037634
54563