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

Support namespace #44

Merged
merged 3 commits into from Sep 20, 2021
Merged

Support namespace #44

merged 3 commits into from Sep 20, 2021

Conversation

fabien0102
Copy link
Owner

Why

Module was not supported, to handle those, I did add a little pre-processor to flatten them applying a prefix (more details in the unit tests)

Issue

#43

Known issue, this doesn’t work with all type references
@fabien0102 fabien0102 self-assigned this Sep 16, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2021

Codecov Report

Merging #44 (61301de) into main (e5e4961) will decrease coverage by 0.42%.
The diff coverage is 97.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
- Coverage   98.49%   98.06%   -0.43%     
==========================================
  Files           8       10       +2     
  Lines         332      414      +82     
  Branches      102      122      +20     
==========================================
+ Hits          327      406      +79     
- Misses          5        6       +1     
- Partials        0        2       +2     
Impacted Files Coverage Δ
src/utils/resolveDefaultProperties.ts 95.23% <95.23%> (ø)
src/utils/resolveModules.ts 97.61% <97.61%> (ø)
src/core/generate.ts 100.00% <100.00%> (ø)
src/core/generateZodSchema.ts 97.41% <100.00%> (+0.21%) ⬆️
src/core/jsDocTags.ts 98.46% <100.00%> (-1.54%) ⬇️
src/core/validateGeneratedTypes.ts 97.43% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e9cd82...61301de. Read the comment docs.

@fabien0102
Copy link
Owner Author

I need to add a namespace in the example, something is not following 😉

@fabien0102 fabien0102 mentioned this pull request Sep 20, 2021
@fabien0102 fabien0102 merged commit 2a9ad9c into main Sep 20, 2021
@fabien0102 fabien0102 deleted the support-namespace branch September 20, 2021 08:30
fabien0102 added a commit that referenced this pull request Sep 20, 2021
* Resolve module as first step

Known issue, this doesn’t work with all type references

* Deal with module

* Add a namespace in the example and fix generation
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

2 participants