-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: calculate location for a mapping with no value (#11)
* fix: introduce YamlParserResult type * fix: calculate location for a mapping with no value * chore: remove test.each
- Loading branch information
Showing
6 changed files
with
88 additions
and
6 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,36 @@ | ||
swagger: '2.0' | ||
|
||
info: | ||
title: Repro two | ||
description: Endpoint definition | ||
version: "1.0.0" | ||
contact: | ||
name: toto | ||
host: not-example.com | ||
schemes: | ||
- https | ||
basePath: /repro/two | ||
|
||
paths: | ||
/quotes_requests: | ||
post: | ||
summary: Gets nothing either. | ||
operationId: "12" | ||
description: Cf. summary | ||
tags: [yep] | ||
parameters: | ||
- name: body | ||
description: Content. | ||
in: body | ||
schema: | ||
$ref: '#/definitions/AnotherDefinition' | ||
responses: | ||
204: | ||
description: Zip | ||
|
||
definitions: | ||
AnotherDefinition: | ||
type: object | ||
properties: | ||
special: | ||
description: |
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
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
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,4 @@ | ||
import { IParserResult } from '@stoplight/types'; | ||
import { YAMLNode } from 'yaml-ast-parser'; | ||
|
||
export type YamlParserResult<T> = IParserResult<T, YAMLNode, number[]>; |