-
Notifications
You must be signed in to change notification settings - Fork 101
[compiler] Include exceptions to schema #4695
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I like happy linters.
@@ -211,8 +211,10 @@ pub fn expand(model: IndexedModel, config: ExpandConfig) -> anyhow::Result<Index | |||
|
|||
expand_behaviors(&mut resp.behaviors, &mappings, model, ctx)?; | |||
expand_body(&mut resp.body, &mappings, model, ctx)?; | |||
|
|||
// TODO: exceptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3)
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3)
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3)
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3)
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3) Co-authored-by: Laurent Saint-Félix <[email protected]>
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3) Co-authored-by: Laurent Saint-Félix <[email protected]>
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3) Co-authored-by: Laurent Saint-Félix <[email protected]>
* compiler: validate types found only in exceptions * split indices.get_alias for clarity, handle NotFoundAliases with previous comit * making the compiler linter happy again * align generics expansion between rust and typescript * compiler: propagate generics in case someone want to have a generic exception * once again, making the linter happy (cherry picked from commit 1c2d7f3) Co-authored-by: Laurent Saint-Félix <[email protected]>
Types only found in exceptions are not included in the final
schema.json
because the compiler has not "seen" them.This fixes the
NotFoundAliases
exception present inindices.get_alias
.This adds the following to the output: