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

feat(gen): support user-defined JSON Schema formats #728

Merged
merged 6 commits into from
Dec 21, 2022

Conversation

tdakkota
Copy link
Member

No description provided.

@tdakkota tdakkota force-pushed the feat/custom-formats branch from b8d14b1 to 7abfdd8 Compare December 19, 2022 15:23
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 74.38% // Head: 74.45% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (21dcffd) compared to base (c4da0eb).
Patch coverage: 81.69% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #728      +/-   ##
==========================================
+ Coverage   74.38%   74.45%   +0.06%     
==========================================
  Files         176      179       +3     
  Lines       12734    12869     +135     
==========================================
+ Hits         9472     9581     +109     
- Misses       2781     2799      +18     
- Partials      481      489       +8     
Impacted Files Coverage Δ
gen/ir/primitive.go 76.92% <0.00%> (-3.08%) ⬇️
gen/generator.go 59.37% <61.29%> (+0.73%) ⬆️
gen/gen_schema.go 69.69% <100.00%> (+0.30%) ⬆️
gen/ir/custom_format.go 100.00% <100.00%> (ø)
gen/ir/type.go 80.15% <100.00%> (+0.99%) ⬆️
gen/ir/validation.go 76.19% <100.00%> (+0.16%) ⬆️
gen/options.go 28.57% <100.00%> (+11.90%) ⬆️
gen/schema_gen.go 82.86% <100.00%> (+0.56%) ⬆️
gen/schema_gen_primitive.go 89.59% <100.00%> (+0.18%) ⬆️
gen/write.go 89.27% <100.00%> (+0.48%) ⬆️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tdakkota tdakkota force-pushed the feat/custom-formats branch 3 times, most recently from ff42575 to 60827ba Compare December 21, 2022 08:14
This is a workaround for `goimports`: it does not treat called function as missing package, unlike
field lookup of global variable.

Otherwise, `goimports` will try to search for the non-existing package and will check every
package in the GOPATH/module cache. This leads to a very big slowdown.
@tdakkota tdakkota force-pushed the feat/custom-formats branch from 60827ba to 21dcffd Compare December 21, 2022 09:28
@tdakkota tdakkota marked this pull request as ready for review December 21, 2022 09:29
@ernado ernado merged commit f701b6a into ogen-go:main Dec 21, 2022
@tdakkota tdakkota deleted the feat/custom-formats branch December 22, 2022 06:44
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.

2 participants