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

validateSwagger exception #171

Open
damc-dev opened this issue Jun 20, 2019 · 0 comments
Open

validateSwagger exception #171

damc-dev opened this issue Jun 20, 2019 · 0 comments
Labels

Comments

@damc-dev
Copy link

Describe the bug

The validateSwagger Gradle task fails due to exception:

org.yaml.snakeyaml.events.MappingStartEvent.<init>(Ljava/lang/String;Ljava/lang/String;ZLorg/yaml/snakeyaml/error/Mark;Lorg/yaml/snakeyaml/error/Mark;Ljava/lang/Boolean;)V

To Reproduce:

  1. Create new directory

  2. Run gradle init

  3. Download https://github.com/int128/gradle-swagger-generator-plugin/blob/master/acceptance-test/examples/openapi-v2-petstore.yaml into directory

  4. Update build.gradle

plugins {
  id 'org.hidetake.swagger.generator' version '2.18.1'
}

validateSwagger {
    inputFile = file('openapi-v2-petstore.yaml')
}
  1. run gradlew validateSwagger

Expected behavior:

Validates swagger spec

Environment

Plugin version: 2.18.1
Gradle version: 5.4.1
Java version:
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (Zulu 8.30.0.1-win64) (build 1.8.0_172-b01)
OpenJDK 64-Bit Server VM (Zulu 8.30.0.1-win64) (build 25.172-b01, mixed mode)

OS: Windows 10

@damc-dev damc-dev added the bug label Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant