Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

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

Closed
mpvl opened this issue Jul 2, 2019 · 1 comment

Comments

@mpvl
Copy link
Contributor

mpvl commented Jul 2, 2019

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.

@cueckoo
Copy link

cueckoo commented Jul 3, 2021

This issue has been migrated to cue-lang/cue#58.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants