{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/rivaas.dev/openapi","name":"rivaas.dev/openapi","description":"Package openapi provides OpenAPI 3.0.4 and 3.1.2 specification generation for Go applications.\n\nThis package enables automatic generation of OpenAPI specifications from Go code using struct tags\nand reflection. It provides a pure, stateless API for building specifications with minimal boilerplate.\n\nThe package uses two distinct types of options, both with the With* prefix:\n\nExample:\n\nThe package automatically discovers API parameters from struct tags compatible with\nthe binding package:\n\nExample:\n\nThis automatically generates OpenAPI parameters without manual specification.\n\nComponent schema names use the format \"pkgname.TypeName\" to prevent\ncross-package type name collisions. For example, types from different\npackages with the same name (e.g., \"api.User\" and \"models.User\") will\ngenerate distinct schema names in the OpenAPI specification.\n\nOperation IDs are automatically generated from HTTP method and path using semantic naming:\n\nCustom operation IDs can be set using the WithOperationID option.\n\nGenerated specifications can be validated against the official OpenAPI meta-schemas.\nValidation is opt-in to avoid performance overhead:\n\nThe validate subpackage provides standalone validation for external OpenAPI specs:\n\nExample_warnings demonstrates how to work with warnings from spec generation.\n\n\nExample_warningsFiltering demonstrates advanced warning filtering.\n\n\nExample_warningsStrictMode demonstrates strict downlevel mode.","version":"v0.7.0","softwareVersion":"v0.7.0","license":"https://spdx.org/licenses/Apache-2.0","url":"https://github.com/rivaas-dev/rivaas","dateCreated":"2025-11-24","dateModified":"2026-03-24","datePublished":"2026-03-24","copyrightYear":2025,"downloadUrl":"https://proxy.golang.org/rivaas.dev/openapi/@v/v0.7.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/rivaas.dev/openapi#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","sameAs":["https://pkg.go.dev/rivaas.dev/openapi"]}