Skip to content

ktanaka101/openapi-dry-validation-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate dry-validation(ruby) from openapi spec file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages