OpenAPI4s Documentation
Tutorials How-Tos Reference Explanation

OpenAPI4s 🔗

Generate idiomatic Scala 3 models, validation types, HTTP server routes and clients from OpenAPI or JSON Schema documents.

Use OpenAPI4s with the CLI, sbt plugin, Mill plugin or Deder plugin

  • Start with the quickstart
  • Solve a specific integration task
  • Look up CLI and backend details
  • Understand when to choose OpenAPI4s

Site map 🔗

  • Tutorials

    • Quickstart
  • How-Tos

    • Generate models from JSON Schema
    • Generate an http4s API with Iron
    • Regenerate an evolving API
  • Reference

    • CLI
    • Backends and dependencies
    • Limitations
  • Explanation

    • Why OpenAPI4s?
On this page
  • OpenAPI4s
    • Site map
OpenAPI4s — contract-first Scala 3 code generation GitHub