Skip to content

Latest commit

 

History

History
109 lines (83 loc) · 1.91 KB

File metadata and controls

109 lines (83 loc) · 1.91 KB

openapi-dry-validation-generator

🛠 This repository is WIP. Generate dry-validation(ruby) from openapi spec file

Summary

We want to output dry-validation from the OpenAPI definition file. I want to be able to delegate the validation of the API to be implemented in Ruby to the OpenAPI definition 🚀.

The ultimate goal is to

  • Provided as an executable file. (single binary, of course)
  • Supports all definitions involving OpenAPI validation.
  • Generate a ruby code within 1 second.

Supports

This mark(🚫) is an option that we do not believe can be supported by dry-validation in the first place.

Client Modification Feature

  • 🚫 BasePath
  • 🚫 Authorizations
  • 🚫 UserAgent
  • 🚫 MockServer

Data Type Feature

  • Custom
  • Int32
  • Int64
  • Float
  • Double
  • String
  • Byte
  • Boolean
  • Date
  • DateTime
  • Password
  • Uuid
  • Array
  • Null
  • AnyType
  • Object
  • Enum

Documentation Feature

  • Readme
  • model
  • Api

Global Feature

  • 🚫 Host
  • 🚫 BasePath
  • 🚫 Info
  • Schemes
  • PartialSchemes
  • ExternalDocumentation
  • Examples
  • XMLStructureDefinitions
  • 🚫 MultiServer
  • ParameterizedServer
  • ParameterStyling
  • Callbacks
  • LinkObjects

Parameter Feature

  • Path
  • Query
  • Header
  • Cookie

Schema Support Feature

  • Simple
  • Composite
  • Polymorphism
  • Union
  • allOf
  • anyOf
  • oneOf
  • not

Security Feature

  • 🚫 BasicAuth
  • 🚫 ApiKey
  • 🚫 OpenIDConnect
  • 🚫 BearerToken
  • 🚫 OAuth2_Implicit
  • 🚫 OAuth2_Password
  • 🚫 OAuth2_ClientCredentials
  • 🚫 OAuth2_AuthorizationCode

Input Format

  • JSON
  • YAML

Contributors

License

MIT