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

encoding/openapi: array item type is sometimes expanded when a reference could have been used #58

Closed
cueckoo opened this issue Jul 3, 2021 · 0 comments

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @mpvl in cuelang/cue#58

The reason for this is that cue evaluates list types too aggressively. This does not change the result of a usual CUE evaluation, but it does disallow introspection of intermediate results as is needed by the openapi package.

There are several ways to handle this, but most ideally and most consistently, cue could treat list item types analoguously to struct templates.

Alternatives are to track more origin information in result nodes.

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

No branches or pull requests

1 participant