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

tests: add stripe api definitions #49

Merged
merged 10 commits into from
Apr 23, 2023
Merged

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
2 checks passed
@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.

None yet

1 participant