Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): namespacing no longer breaks when objects conflict across namespaces #4673

Merged
merged 13 commits into from
Sep 17, 2024
Prev Previous commit
Next Next commit
bring back tests
  • Loading branch information
armandobelardo committed Sep 12, 2024
commit 44dca160288e0d35d27f06c7078653525b0daa17

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`anyOf > anyOf > docs 1`] = `
{
"definitionFiles": {},
"packageMarkerFile": {
"service": {
"auth": false,
"base-path": "",
"endpoints": {
"Get": {
"auth": false,
"docs": undefined,
"examples": [
{
"request": {},
"response": {
"body": {
"value": 1.1,
},
},
},
],
"method": "GET",
"pagination": undefined,
"path": "/get",
"request": {
"body": {
"properties": {
"id": {
"docs": "An optional string value.
",
"type": "optional<string>",
},
},
},
"headers": undefined,
"name": "Request",
"query-parameters": undefined,
},
"response": {
"docs": "A simple API response.",
"type": "Response",
},
},
},
"source": {
"openapi": "anyOf/openapi.yml",
},
},
"types": {
"Response": {
"docs": "A generic response type used throughout the API.
",
"properties": {
"value": {
"docs": "An optional numerical value.
",
"type": "optional<double>",
},
},
"source": {
"openapi": "anyOf/openapi.yml",
},
},
},
},
"rootApiFile": {
"display-name": "Test spec for \`description\` settings defined in anyOf.",
"error-discrimination": {
"strategy": "status-code",
},
"name": "api",
},
}
`;

exports[`anyOf > anyOf > simple 1`] = `
{
"definitionFiles": {},
"packageMarkerFile": {
"service": {
"auth": false,
"base-path": "",
"endpoints": {
"Get": {
"auth": false,
"docs": undefined,
"examples": [
{
"request": {},
"response": {
"body": {
"value": 1.1,
},
},
},
],
"method": "GET",
"pagination": undefined,
"path": "/get",
"request": {
"body": {
"properties": {
"id": {
"docs": "An optional string value.
",
"type": "optional<string>",
},
},
},
"headers": undefined,
"name": "Request",
"query-parameters": undefined,
},
"response": {
"docs": "A simple API response.",
"type": "Response",
},
},
},
"source": {
"openapi": "anyOf/openapi.yml",
},
},
"types": {
"Response": {
"docs": "A generic response type used throughout the API.
",
"properties": {
"value": {
"docs": "An optional numerical value.
",
"type": "optional<double>",
},
},
"source": {
"openapi": "anyOf/openapi.yml",
},
},
},
},
"rootApiFile": {
"display-name": "Test spec for \`description\` settings defined in anyOf.",
"error-discrimination": {
"strategy": "status-code",
},
"name": "api",
},
}
`;
Loading
Loading