GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix: Allow to define type fields with whole document or remote reference by wtertius · Pull Request #308 · oapi-codegen/oapi-codegen

Conversation

@wtertius

@wtertius wtertius commented Mar 2, 2021

Copy link
Copy Markdown
Contributor

Fix: Allow to define type fields with whole document or remote reference

It fixes the following case:

$ cat main.yml:
  ...
      elements:
        type: array
        items:
          $ref: './schemas/items.yml'

$ cat ./schemas/items.yml
type: object
properties:
  id:
    type: integer
    format: int64
  name:
    type: string

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@wtertius
wtertius force-pushed the allow_to_define_type_fields_throw_whole_document_reference branch 3 times, most recently from a72759c to 3fd3ca2 Compare March 9, 2021 18:29
Lukiianchuk Dmitrii
Fix: Allow to define type fields with whole document or remote refere…
0f1d198
…nce.

It fixes the following case:
$ cat main.yml:
  ...
      elements:
        type: array
        items:
          $ref: './schemas/items.yml'

$ cat ./schemas/items.yml
type: object
properties:
  id:
    type: integer
    format: int64
  name:
    type: string
@wtertius
wtertius force-pushed the allow_to_define_type_fields_throw_whole_document_reference branch from 3fd3ca2 to 0f1d198 Compare March 9, 2021 18:33
Marcin Romaszewicz
Merge branch 'master' into allow_to_define_type_fields_throw_whole_do…
0542889
…cument_reference
@ghost
ghost merged commit ff7eeab into oapi-codegen:master Mar 18, 2021
This was referenced Mar 18, 2021
Bump github.com/deepmap/oapi-codegen from 1.5.1 to 1.5.2 typesense/typesense-go#50
Closed
Bump github.com/deepmap/oapi-codegen from 1.5.1 to 1.5.2 vigneshv59/typesense-go#6
Closed
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
@wtertius Lukiianchuk Dmitrii Marcin Romaszewicz
Fix: Allow to define type fields with whole document or remote refere…
dd3b29f
…nce. (oapi-codegen#308)

It fixes the following case:
$ cat main.yml:
  ...
      elements:
        type: array
        items:
          $ref: './schemas/items.yml'

$ cat ./schemas/items.yml
type: object
properties:
  id:
    type: integer
    format: int64
  name:
    type: string

Co-authored-by: Lukiianchuk Dmitrii <[email protected]>
Co-authored-by: Marcin Romaszewicz <[email protected]>
@BogdanYarotsky BogdanYarotsky mentioned this pull request Oct 29, 2026
A oneOf/anyOf branch that is a whole-file $ref generates Go that doesn't parse #2639
Open
@n-hiraha n-hiraha mentioned this pull request Oct 31, 2026
Name whole-file $ref union branches like inline ones #2642
Draft
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@wtertius
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.