13 lines
501 B
Go
13 lines
501 B
Go
// Package apispec embeds the OpenAPI specification so it can be served at
|
|
// runtime (for the ReDoc documentation page and /openapi.yaml) without
|
|
// shipping a separate file alongside the binary.
|
|
//
|
|
// The spec at rest/predictor.swagger.yml is the single source of truth: it
|
|
// is both the ogen code-generation input (see the Makefile generate-ogen
|
|
// target) and the document served by the API's docs handler.
|
|
package apispec
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed rest/predictor.swagger.yml
|
|
var Spec []byte
|