# Make sure that `cue def` works when the OpenAPI
# schema does not have a top level doc field.

exec cue def openapi+yaml: schema.yaml
cmp stdout want.cue

-- schema.yaml --
openapi: "3.0.0"
components:
  schemas:
    Foo:
        type: string
-- want.cue --
#Foo: string
