-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #460 from tdakkota/feat/yaml-location
feat(ogen): parse correct line number for YAML
- Loading branch information
Showing
28 changed files
with
2,072 additions
and
1,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "WARNING: Update TestLocation if you change this file", | ||
"version": "0.1.0" | ||
}, | ||
"paths": { | ||
"/foo": { | ||
"post": { | ||
"parameters": [ | ||
{ | ||
"name": "foo", | ||
"in": "query", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/User" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "User info", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/User" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"User": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "integer", | ||
"enum": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"minimum": 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: 'WARNING: Update TestLocation if you change this file' | ||
version: 0.1.0 | ||
paths: | ||
/foo: | ||
post: | ||
parameters: | ||
- name: foo | ||
in: query | ||
schema: | ||
type: string | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/User' | ||
responses: | ||
"200": | ||
description: User info | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/User' | ||
components: | ||
schemas: | ||
User: | ||
type: object | ||
properties: | ||
name: | ||
type: integer | ||
enum: | ||
- 1 | ||
- 2 | ||
- 3 | ||
minimum: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.