Versions in this module Expand all Collapse all v0 v0.2.0 Nov 12, 2026 v0.1.0 Nov 8, 2026 Changes in this version + const CodeCompiler + const CodeCycle + const CodeDuplicateID + const CodeExtension + const CodeExternalRef + const CodeKeyword + const CodeMediaType + const CodeMethod + const CodeOperationID + const CodePathTemplate + const CodeRefInvalid + const CodeSchemaLimit + const CodeSecurity + const CodeTargetCollision + const DefaultBodyBytes + const ExitComplete + const ExitFailed + const ExitPartial + const MaxSpecBytes + const NoteDefaultSignIn + func Command(args []string, stderr io.Writer) int + type Assumed struct + Field string + Note string + Operation string + Value any + type Changed struct + Field string + Note string + Operation string + type ExportOptions struct + API string + WithUpstream bool + type ExportReport struct + API string + Changed []Changed + Exported []Exported + Omitted []string + Operations int + func Export(p policy.Policy, options ExportOptions) (map[string]any, *ExportReport, error) + func (r *ExportReport) Exit() int + type Exported struct + Method string + Operation string + Path string + type Format string + const JSON + const YAML + type Mapped struct + Auth string + Method string + Note string + Operation string + Path string + Target string + type NotEnforced struct + In string + Operation string + Parameter string + type Options struct + API string + Base policy.Policy + MaxBodyBytes int64 + Upstream string + WithPermits bool + type Permit struct + Operation string + Role string + type Refused struct + Code string + Field string + Message string + Method string + Path string + Suggestion string + type Removed struct + Field string + Operation string + type Report struct + API string + AnnotationsRemoved []Removed + Assumed []Assumed + Changed []Changed + Ignored []string + Mapped []Mapped + NeedsPermissions []string + NotEnforced []NotEnforced + OperationsInSpec int + Refused []Refused + RemovedOperations []string + RemovedPermits []Permit + ScopesNotMapped []string + SourceFormat Format + SpecVersion string + Widened []Mapped + func Import(spec []byte, format Format, options Options) (policy.Policy, *Report, error) + func (r *Report) Exit() int