Skip to content

Commit

Permalink
Surface reasons for breaking change in polymorphic types (#2466)
Browse files Browse the repository at this point in the history
  • Loading branch information
niclim authored Oct 31, 2023
1 parent 3bc0b1e commit 103b9cf
Show file tree
Hide file tree
Showing 24 changed files with 1,218 additions and 266 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openapi-workspaces",
"license": "MIT",
"private": true,
"version": "0.50.15",
"version": "0.50.16",
"workspaces": [
"projects/json-pointer-helpers",
"projects/openapi-io",
Expand Down
2 changes: 1 addition & 1 deletion projects/fastify-capture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/fastify-capture",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/json-pointer-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/json-pointer-helpers",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-io",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-utilities",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/optic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/optic",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
"schema": {
"type": "object",
"properties": {
"oneOfToObject": {
"oneOf": [
{ "type": "object", "properties": { "id": {"type":"string"}}, "required": ["id"]},
{ "type": "object", "properties": { "name": {"type":"string"}}, "required": ["name"]}

]
},
"stringOrNumberOrObject": {
"oneOf": [
{ "type": "string" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
"schema": {
"type": "object",
"properties": {
"oneOfToObject": {
"type": "object",
"properties": { "id": {"type": "string"}, "name": {"type": "string"}}
},
"stringOrNumberOrObject": {
"oneOf": [{ "type": "string" }, { "type": "number" }]
},
Expand Down
2 changes: 1 addition & 1 deletion projects/rulesets-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/rulesets-base",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/standard-rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/standard-rulesets",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.50.15",
"version": "0.50.16",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
Loading

0 comments on commit 103b9cf

Please sign in to comment.