Jonathan Siegel 77365c34fa
[crystal-lang] Resolve type check compile error in ApiError (#18759)
* 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.
2024-05-26 11:44:07 +08:00
..
2024-05-20 17:27:17 +08:00
2021-09-09 12:49:03 +08:00
2024-05-26 11:29:24 +08:00
2024-05-20 17:27:17 +08:00

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