forked from loafle/openapi-generator-original
* Even with .nil? typecheck, compiler still fails due to .empty? call on nillable type. This appears a poor implementation issue by crystal-lang, but this explicit try avoids the issue for now. * Made call more succinct.
petstore
The Crystal module for the OpenAPI Petstore
This is a sample server Petstore server. For this sample, you can use the api key special-key
to test the authorization filters.
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.7.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.CrystalClientCodegen
Installation
Install from Git
Add the following to shard.yaml
dependencies:
petstore:
github: GIT_USER_ID/GIT_REPO_ID
version: ~> 1.0.0
Development
Install dependencies
shards
Run the tests:
crystal spec