internal/

directory
v0.0.0-...-cfb3663 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT

Directories

Path Synopsis
Package annotation reads the documentation-adjacent facts a schema or a carrier declares — descriptions, deprecation, redaction, visibility, XML hints, extensions — and the validation-only JSON Schema keywords the IR keeps verbatim rather than models.
Package annotation reads the documentation-adjacent facts a schema or a carrier declares — descriptions, deprecation, redaction, visibility, XML hints, extensions — and the validation-only JSON Schema keywords the IR keeps verbatim rather than models.
Package auth lowers what a document says about authentication: the security schemes it declares, and the requirements that name them.
Package auth lowers what a document says about authentication: the security schemes it declares, and the requirements that name them.
Package budget counts the work and the size of a compile against their limits.
Package budget counts the work and the size of a compile against their limits.
Package canary pins the parser library behaviours docs/parser-library.md records, one test for each entry.
Package canary pins the parser library behaviours docs/parser-library.md records, one test for each entry.
Package compileddoc reads a compiled document once it is whole, for the steps that run after the lowerings: it lists the operations and indexes the members, parameters and headers those steps name (CompiledDocumentView).
Package compileddoc reads a compiled document once it is whole, for the steps that run after the lowerings: it lists the operations and indexes the members, parameters and headers those steps name (CompiledDocumentView).
Package componentlookup answers what a $ref names: the same-document pointer it addresses and the type interned there, and, for components that are not schemas, the concrete value and declaration site a reference-or-inline entry stands for.
Package componentlookup answers what a $ref names: the same-document pointer it addresses and the type interned there, and, for components that are not schemas, the concrete value and declaration site a reference-or-inline entry stands for.
Package convention fills the facts an OpenAPI document implies by the names it gives its fields rather than declares: an operation's idempotency token, by the header the key travels in; a credential's redaction, by what it is called; and a response header's HTTP-date text, by the field it is.
Package convention fills the facts an OpenAPI document implies by the names it gives its fields rather than declares: an operation's idempotency token, by the header the key travels in; a credential's redaction, by what it is called; and a response header's HTTP-date text, by the field it is.
Package detect recognizes an OpenAPI or Swagger document from its bytes: the discriminating key it writes and the version beside it, read off the parse the compile goes on to lower.
Package detect recognizes an OpenAPI or Swagger document from its bytes: the discriminating key it writes and the version beside it, read off the parse the compile goes on to lower.
Package diag holds the OpenAPI compiler's diagnostic vocabulary: the stable codes it reports under, the single constructor that builds a diagnostic from them, and how one quotes a dependency's error or panic.
Package diag holds the OpenAPI compiler's diagnostic vocabulary: the stable codes it reports under, the single constructor that builds a diagnostic from them, and how one quotes a dependency's error or panic.
Package dialect holds the rows each schema of a compile is read with: those of the dialect the innermost schema resource root naming one at or above it names, else those of its document, else the source's.
Package dialect holds the rows each schema of a compile is read with: those of the dialect the innermost schema resource root naming one at or above it names, else those of its document, else the source's.
Package doctree reads an input's bytes, the source's, an overlay's or a document a reference names, into the YAML parser's tree of its first document that holds content, held to the node budget as it is read.
Package doctree reads an input's bytes, the source's, an overlay's or a document a reference names, into the YAML parser's tree of its first document that holds content, held to the node budget as it is read.
Package document lowers what a document says about itself rather than its types or operations: its info and root externalDocs, and, kept verbatim, what the objects around them write that lowers to no node (docs/compilers/openapi.md#document-metadata, docs/compilers/openapi.md#unreferenced-components).
Package document lowers what a document says about itself rather than its types or operations: its info and root externalDocs, and, kept verbatim, what the objects around them write that lowers to no node (docs/compilers/openapi.md#document-metadata, docs/compilers/openapi.md#unreferenced-components).
Package fragment is the one place the compiler reads a $ref fragment as a JSON pointer (GitHub #911), and tells an absolute reference, which no base moves, from a relative one.
Package fragment is the one place the compiler reads a $ref fragment as a JSON pointer (GitHub #911), and tells an absolute reference, which no base moves, from a relative one.
Package ids builds the RFC 6901 pointer that names a position — a jsontext.Pointer from construction on, read back through its methods, never split on '/' — and derives IR identifiers and namespaces from it.
Package ids builds the RFC 6901 pointer that names a position — a jsontext.Pointer from construction on, read back through its methods, never split on '/' — and derives IR identifiers and namespaces from it.
Package jsonpath evaluates RFC 9535 queries over the JSON value a YAML tree stands for: an alias reads as the node it names, a `<<` merge key's members as members of the mapping merging them, and a scalar as the compiler reads it.
Package jsonpath evaluates RFC 9535 queries over the JSON value a YAML tree stands for: an alias reads as the node it names, a `<<` merge key's members as members of the mapping merging them, and a scalar as the compiler reads it.
Package load turns one source document into a parsed, reference-resolved OpenAPI document plus the identity metadata the rest of the compiler stamps into the IR.
Package load turns one source document into a parsed, reference-resolved OpenAPI document plus the identity metadata the rest of the compiler stamps into the IR.
Package lowering holds the context the OpenAPI schema lowering reads.
Package lowering holds the context the OpenAPI schema lowering reads.
Package merge reconciles the properties more than one allOf entry declares: folding the declarations into one, composing the models they name, or reporting that they disagree.
Package merge reconciles the properties more than one allOf entry declares: folding the declarations into one, composing the models they name, or reporting that they disagree.
Package naming names every node the OpenAPI compiler builds as a function of the documents and the node's coordinate (GitHub #981), so which lowering reaches a coordinate first cannot change what it is called.
Package naming names every node the OpenAPI compiler builds as a function of the documents and the node's coordinate (GitHub #981), so which lowering reaches a coordinate first cannot change what it is called.
Package nodeview is the compiler's one reading of a raw YAML tree: a mapping read the way the parser reads it, through aliases and `<<` merge keys, each key and each key written twice settled as the parser's model settles them (docs/parser-library.md#merge-keys, #duplicate-key, #non-scalar-key), and one bounded, iterative walk of a tree as written (Walk).
Package nodeview is the compiler's one reading of a raw YAML tree: a mapping read the way the parser reads it, through aliases and `<<` merge keys, each key and each key written twice settled as the parser's model settles them (docs/parser-library.md#merge-keys, #duplicate-key, #non-scalar-key), and one bounded, iterative walk of a tree as written (Walk).
Package openapitest holds the test scaffolding every test package under compilers/openapi would otherwise copy, since test files cannot share unexported helpers.
Package openapitest holds the test scaffolding every test package under compilers/openapi would otherwise copy, since test files cannot share unexported helpers.
Package operation lowers what a document says an API does: its path items, webhooks and callbacks, the parameters merged onto each operation, and the content of every request body, response and header.
Package operation lowers what a document says an API does: its path items, webhooks and callbacks, the parameters merged onto each operation, and the content of every request body, response and header.
Package overlay applies an OpenAPI Overlay document to the parsed node tree, and records which positions in the result the overlay is answerable for.
Package overlay applies an OpenAPI Overlay document to the parsed node tree, and records which positions in the result the overlay is answerable for.
Package pagination fills an operation's ir.Pagination: Promote from the extensions a policy maps to the pagination targets (docs/compilers/openapi.md#extension-pagination), and InferWalks, under the pagination-inference policy, from the names its query parameters and its success responses' members give (docs/compilers/openapi.md#pagination-policy).
Package pagination fills an operation's ir.Pagination: Promote from the extensions a policy maps to the pagination targets (docs/compilers/openapi.md#extension-pagination), and InferWalks, under the pagination-inference policy, from the names its query parameters and its success responses' members give (docs/compilers/openapi.md#pagination-policy).
Package paramchoice reads what the promotion policy maps an operation's key to, the choices among its parameters, once the document is whole (docs/compilers/openapi.md#mutually-exclusive-parameters): each names alternative sets of the operation's parameters by name, resolved as a link's parameters key is.
Package paramchoice reads what the promotion policy maps an operation's key to, the choices among its parameters, once the document is whole (docs/compilers/openapi.md#mutually-exclusive-parameters): each names alternative sets of the operation's parameters by name, resolved as a link's parameters key is.
Package promotion is the vendor-extension promotion policy: which extension fills which typed IR field (docs/compilers/openapi.md#extension-promotion).
Package promotion is the vendor-extension promotion policy: which extension fills which typed IR field (docs/compilers/openapi.md#extension-promotion).
Package provenance places a finding or a lowered position in the input document that supplied it: a pointer through Doc, and a node of a decoded tree through Tree, each a value the package placing asks of directly.
Package provenance places a finding or a lowered position in the input document that supplied it: a pointer through Doc, and a node of a decoded tree through Tree, each a value the package placing asks of directly.
Package reftable resolves every $ref of an OpenAPI source, a schema's and a Reference Object's, into an immutable table, over the decoded YAML trees and never through the parser's resolver: for each reference, where its own $ref lands and where its chain ends, or why it does not.
Package reftable resolves every $ref of an OpenAPI source, a schema's and a Reference Object's, into an immutable table, over the decoded YAML trees and never through the parser's resolver: for each reference, where its own $ref lands and where its chain ends, or why it does not.
typed
Package typed answers what the lowering asks of a bind table about the typed schemas it holds: where a schema's $ref lands, the schema written there and the one its chain ends on.
Package typed answers what the lowering asks of a bind table about the typed schemas it holds: where a schema's $ref lands, the schema written there and the one its chain ends on.
Package replacement fills what a deprecation names as its replacement (ir.Deprecation.ReplacedBy): Resolve from the vendor extensions a policy maps to promotion.TargetDeprecationReplacedBy, as every promotion reads the extensions the nodes keep, and Infer, under the replacement policy, from what the deprecation's message names where no such extension is written.
Package replacement fills what a deprecation names as its replacement (ir.Deprecation.ReplacedBy): Resolve from the vendor extensions a policy maps to promotion.TargetDeprecationReplacedBy, as every promotion reads the extensions the nodes keep, and Infer, under the replacement policy, from what the deprecation's message names where no such extension is written.
Package runtimeexpr reads the runtime expressions an OpenAPI document writes, as the values of a link and the page walk of an extension do, and finds the members of a body one names, through the reading of the compiled document those steps share (compileddoc.CompiledDocumentView).
Package runtimeexpr reads the runtime expressions an OpenAPI document writes, as the values of a link and the page walk of an extension do, and finds the members of a body one names, through the reading of the compiled document those steps share (compileddoc.CompiledDocumentView).
Package scan refuses a source document before any of it is lowered, for shapes the parser library cannot decode: a YAML alias cycle or fan-out, which overflows its stack or exhausts memory (docs/parser-library.md#alias-cycle, docs/parser-library.md#alias-expansion), and nesting so deep that its cost per node, growing with depth, adds up past use (docs/parser-library.md#nesting-cost).
Package scan refuses a source document before any of it is lowered, for shapes the parser library cannot decode: a YAML alias cycle or fan-out, which overflows its stack or exhausts memory (docs/parser-library.md#alias-cycle, docs/parser-library.md#alias-expansion), and nesting so deep that its cost per node, growing with depth, adds up past use (docs/parser-library.md#nesting-cost).
Package schema lowers OpenAPI schemas into IR types: shapes, compositions, references, and what the IR has no field for.
Package schema lowers OpenAPI schemas into IR types: shapes, compositions, references, and what the IR has no field for.
Package servers lowers the servers a document declares, whichever object declares them, into one registry keyed by ID, and names the ones a scope uses (docs/compilers/openapi.md#servers, docs/compilers/openapi.md#path-item-servers).
Package servers lowers the servers a document declares, whichever object declares them, into one registry keyed by ID, and names the ones a scope uses (docs/compilers/openapi.md#servers, docs/compilers/openapi.md#path-item-servers).
Package service holds the context the service lowerings read: the operation walk, the security schemes and requirements, the servers and the document's own metadata.
Package service holds the context the service lowerings read: the operation walk, the security schemes and requirements, the servers and the document's own metadata.
servicetest
Package servicetest builds the context the compiler's tests lower under, over a document the load phase read, as the compiler builds its own.
Package servicetest builds the context the compiler's tests lower under, over a document the load phase read, as the compiler builds its own.
Package sourcetreestats answers, in one walk, the questions asked of a decoded source tree before any of it is lowered: how many nodes it declares, how deeply it nests, which aliases name an ancestor, and which mappings carry a tag the parser faults on, as a value the caller carries rather than a walk it repeats.
Package sourcetreestats answers, in one walk, the questions asked of a decoded source tree before any of it is lowered: how many nodes it declares, how deeply it nests, which aliases name an ancestor, and which mappings carry a tag the parser faults on, as a value the caller carries rather than a walk it repeats.
Package specrules holds the OpenAPI Specification's rules as data, and the engine that checks a source tree against them at the minor it declares.
Package specrules holds the OpenAPI Specification's rules as data, and the engine that checks a source tree against them at the minor it declares.
Package statement reads what a schema position writes into one value: the schema object there, every key it writes in the slot its keyword speaks of (specrules.Slot), each slot's values typed, and its inline allOf entries flattened as the lowering flattens them (docs/compilers/openapi.md#allof-classification).
Package statement reads what a schema position writes into one value: the schema object there, every key it writes in the slot its keyword speaks of (specrules.Slot), each slot's values typed, and its inline allOf entries flattened as the lowering flattens them (docs/compilers/openapi.md#allof-classification).
Package stream reads what the promotion policy maps an operation's or a streaming content's keys to, of the stream an operation's success responses carry, once the document is whole: the frame data that ends it and the request input that asks for it (docs/compilers/openapi.md#streaming-media).
Package stream reads what the promotion policy maps an operation's or a streaming content's keys to, of the stream an operation's success responses carry, once the document is whole: the frame data that ends it and the request input that asks for it (docs/compilers/openapi.md#streaming-media).
Package typeformat relates the primitive kinds OpenAPI spells.
Package typeformat relates the primitive kinds OpenAPI spells.
Package value classifies YAML scalars and lowers source values into ir.Value, keeping numeric literals as their exact source text so nothing rounds through float64.
Package value classifies YAML scalars and lowers source values into ir.Value, keeping numeric literals as their exact source text so nothing rounds through float64.
Package ynode spells yaml.v3 nodes for tests: the constructors for the node kinds a parse produces, the `<<` merge key among them, and the merge chain the compiler's depth bounds are measured against.
Package ynode spells yaml.v3 nodes for tests: the constructors for the node kinds a parse produces, the `<<` merge key among them, and the merge chain the compiler's depth bounds are measured against.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL