Skip to content

tests: add stripe api definitions#49

Merged
mnahkies merged 10 commits intomasterfrom
mn/tests/add-stripe-definitions
Apr 23, 2023
Merged

tests: add stripe api definitions#49
mnahkies merged 10 commits intomasterfrom
mn/tests/add-stripe-definitions

Conversation

@mnahkies
Copy link
Owner

mnahkies added a commit that referenced this pull request Apr 22, 2023
the stripe definitions include schema names like:
```
checkout.session
```

which isn't a valid identifier in typescript. replace these with `_` and
add tests for the `openapi-utils.ts` functions

should get #49
closer to passing.
mnahkies added a commit that referenced this pull request Apr 22, 2023
the stripe definitions include schema names like:
```
checkout.session
```

which isn't a valid identifier in typescript. replace these with `_` and
add tests for the `openapi-utils.ts` functions

should get #49
closer to passing.
mnahkies added a commit that referenced this pull request Apr 22, 2023
the stripe definitions include schema names like:
```
checkout.session
```

which isn't a valid identifier in typescript. replace these with `_` and
add tests for the `openapi-utils.ts` functions

should get #49
closer to passing.
mnahkies added a commit that referenced this pull request Apr 23, 2023
- dependency graph no longer infinitely recurses

- zod schemas now detect when they need to use `lazy`

- joi schemas now detect when they need to use `id` / `link`

required for #49
@mnahkies mnahkies marked this pull request as ready for review April 23, 2023 12:36
@mnahkies
Copy link
Owner Author

Well it took a fair few improvements, but it seems to be generating valid code now 😄

It's still far from perfect, with the additionalProperties support lacking on the schema builder, some amount of suspicion around the accuracy of the query stringifying, and allOf properties being excluded, but I think it shows that adding the Stripe definitions is a good additional test

@mnahkies mnahkies merged commit f388f2a into master Apr 23, 2023
@mnahkies mnahkies deleted the mn/tests/add-stripe-definitions branch April 23, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant