Skip to content

Commit

Permalink
(fix, cli): remove out of range number validations in `openapi-ir-to-…
Browse files Browse the repository at this point in the history
…fern` + remove husky (#3948)
  • Loading branch information
dcb6 authored Jun 27, 2024
1 parent f68ab7e commit 390b735
Show file tree
Hide file tree
Showing 13 changed files with 97 additions and 77 deletions.
15 changes: 0 additions & 15 deletions .husky/post-checkout

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

11 changes: 0 additions & 11 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ yarn

This tells VSCode to rely on the version of TypeScript that lives in `.yarn/sdks/typescript`, which is modified to work with Yarn PNP.

**Step 5: Install Husky**

Run `yarn husky install` from the root of the repo and this will configure pre-commit hooks that will lint your changes.

### Compiling

To compile the packages in this monorepo, run `yarn compile`.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tailwindcss": "^3.15.1",
"execa": "^5.1.1",
"husky": "^8.0.1",
"immer": "^9.0.15",
"is-ci": "^3.0.1",
"jest": "^29.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18770,7 +18770,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -18782,7 +18782,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -18986,7 +18986,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -19073,7 +19073,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -19085,7 +19085,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -19126,7 +19126,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -19138,7 +19138,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -19218,7 +19218,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -19230,7 +19230,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -19365,7 +19365,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -21105,7 +21105,7 @@ exports[`open api parser aries docs 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -41856,7 +41856,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -41868,7 +41868,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -42072,7 +42072,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -42159,7 +42159,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -42171,7 +42171,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -42212,7 +42212,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -42224,7 +42224,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -42304,7 +42304,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand All @@ -42316,7 +42316,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -42451,7 +42451,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -44191,7 +44191,7 @@ exports[`open api parser aries simple 1`] = `
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 18446744073709552000,
"max": undefined,
"min": 0,
"multipleOf": undefined,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10101,7 +10101,7 @@ During the payment intent flow, you need to fill in the payment intent with requ
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 9999999999,
"max": undefined,
"min": 1,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -23333,7 +23333,7 @@ In our documentation example, we use \`{endpoint}\` as a placeholder value. In p
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 9999999999,
"max": undefined,
"min": 1,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -43491,7 +43491,7 @@ During the payment intent flow, you need to fill in the payment intent with requ
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 9999999999,
"max": undefined,
"min": 1,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -55348,7 +55348,7 @@ In our documentation example, we use \`{endpoint}\` as a placeholder value. In p
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 9999999999,
"max": undefined,
"min": 1,
"multipleOf": undefined,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`rules rules docs 1`] = `
{
"response": {
"body": {
"age": 1,
"id": 1,
"name": "name",
"value": 1.1,
Expand Down Expand Up @@ -51,6 +52,18 @@ exports[`rules rules docs 1`] = `
"Schema": {
"docs": undefined,
"properties": {
"age": {
"default": 50,
"docs": "The age of the type.",
"type": "optional<integer>",
"validation": {
"exclusiveMax": false,
"exclusiveMin": true,
"max": undefined,
"min": undefined,
"multipleOf": 10,
},
},
"id": {
"default": 50,
"docs": "The unique ID of the type.",
Expand Down Expand Up @@ -125,6 +138,7 @@ exports[`rules rules simple 1`] = `
{
"response": {
"body": {
"age": 1,
"id": 1,
"name": "name",
"value": 1.1,
Expand Down Expand Up @@ -160,6 +174,18 @@ exports[`rules rules simple 1`] = `
"Schema": {
"docs": undefined,
"properties": {
"age": {
"default": 50,
"docs": "The age of the type.",
"type": "optional<integer>",
"validation": {
"exclusiveMax": false,
"exclusiveMin": true,
"max": undefined,
"min": undefined,
"multipleOf": 10,
},
},
"id": {
"default": 50,
"docs": "The unique ID of the type.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ to us as a value of the \`part_size\` parameter (in bytes).
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 5368709120,
"max": undefined,
"min": 5242880,
"multipleOf": undefined,
},
Expand Down Expand Up @@ -6846,7 +6846,7 @@ to us as a value of the \`part_size\` parameter (in bytes).
"validation": {
"exclusiveMax": undefined,
"exclusiveMin": undefined,
"max": 5368709120,
"max": undefined,
"min": 5242880,
"multipleOf": undefined,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ components:
exclusiveMinimum: true
exclusiveMaximum: false
multipleOf: 10
age:
description: The age of the type.
type: integer
default: 50
minimum: -2147483649 # outside of min int
maximum: 2147483648 # outside of max int
exclusiveMinimum: true
exclusiveMaximum: false
multipleOf: 10
name:
description: The unique name of the type.
type: string
Expand Down
Loading

0 comments on commit 390b735

Please sign in to comment.