Repository navigation
feat!: unify schema composition, folding and routing - #2354
Draft
OmarAlJarrah wants to merge 1106 commits into
Draft
OmarAlJarrah wants to merge 1106 commits into
OmarAlJarrah wants to merge 1106 commits into
Conversation
This was referenced Nov 29, 2026
This was referenced Nov 29, 2026
Open
Cut what the $ref chain readers' and the value-set judges' comments restated of their code or told a second time, name readMembersFilteredByRest's conjunction by its schema rather than a parameter it no longer has, and rewrap two lines past the width. No code token changes.
toldWhereWritten and appendFallbackChainRun returned the walk's no-answer both inside the loop and after it, and the walk now ends on a hop landing on nothing before the loop can run out, which left the return after it unreached. Each breaks to that one return instead. A row holds that a $ref to a schema admitting a value is no schema telling where it is written that it admits none.
appendFallbackChainRun read the place of every schema a run of $refs passes, though it keeps only those writing more than their $ref and the run's end. It now reads the place of those alone. A 4,000-alias chain each alias of which is used retires about 14.0 billion instructions rather than 15.4 at GOMAXPROCS=1.
The told-where-written and typed-branches tests' doc comments grew past 100 words with their new rows; each now names the rows by kind.
The format construct was said of the string target alone, so no case wrote int32 or int64, and an integer format on an allOf entry was held to its flat twin only by an e2e table. The construct is now said of the integer target too, writing int32 and int64 there, so the core cases hold that spelling as they hold a string format's: an integer format an entry writes and the position does not read reddens the spelling and presence oracles.
Each test below fails on its defect planted narrowly, and so does a test that stays: - pass: a variant refusing its tag (caught by the catch-all closure test), a compiled abstract subtype's wording (by the subtype wording test), an inline variant no entry routes (by the unrouted-variant tests) and variants naming one type drawing no collision (by TestNames_ReportsEachScope). Two helpers only they used go too. - openapicases: a keyword read with its object is not split, which the core cases' spelling records already hold. Both packages stay at full statement coverage.
Each test removed here fails on its defect planted narrowly at the production site it was written for, and so does a test that stays, in the same package or below it: - e2e twins of absence-equal keywords, a restating type, a literal union's type, one live branch, a referenced union beside a value set, a target's bounds reaching an enum, a null default at a union, and the fold, content, closure, unevaluated and null-alone reproductions whose schema, merge, statement, specrules or reftable tests redden on the same plant; - three keyword-scope tables of a node keyword on an allOf entry, which the core schema cases now hold, integer formats included; - annotation settlement tests whose rules schema or annotation tests already pin, fold-report and spelling tests of compilers/openapi and openapitest, and a schema null-policy union test. Where docs/compilers/openapi.md cited a removed test as a rule's evidence, it now cites the test that reddened on the plant, or drops the line where the rule already cites it. Each package keeps full statement coverage; e2e holds no statements of its own.
# Conflicts: # compilers/openapi/internal/annotation/pendingkeeps_internal_test.go
Its doc comment said lowerConjunctionUnion routes a union read as alone elsewhere first, implying lowerCoDeclaredUnion never meets one, though a valid document reaches that path. It now states what the test holds: lowerCoDeclaredUnion lowers such a union as written alone, a Union of two typed branches or the reference a $ref beside null collapses to, with no finding, and deadBranches marks no branch of a union the body's conjunction does not choose.
copiesSpec, componentFindings and restatedTree served only tests the previous commits removed, and the unused linter reports each. They go with the imports only they needed.
The integer target's format construct adds cases outside the core whose spellings part from their flat twins as the string target's already do. 184 write an enum as the second construct on an allOf entry, where the entry keeps the format verbatim that the flat schema reads, as any sibling keyword split from its enum across entries does (entry-value-set). 46 write a oneOf on an entry, where the unread keywords draw a second degraded report (split-degraded-reports).
merge read the JSON kind of a literal's value with a switch of its own, beside typeformat.KindsOfValue, and the kinds a node's bounds apply to through the applies-to table of JSON Schema keywords, beside ir.ConstraintKeyword.Binds. The two pairs disagreed: an infinity literal was a string to merge and a number to KindsOfValue, and precision, scale and patternMessage bounded every kind in merge but numbers, numbers and strings by Binds, which docs/ir/constraints.md and docs/ir/enums.md agree with. nodeInstance now reads a literal through KindsOfValue, taking the first of merge's kinds whose instances the value may be, and boundKinds reads each keyword through Binds. merge's InstanceNumber is any number, where typeformat's is a number with a fraction alone; the doc comments now say so, and instanceKindsOf's says what it returns for null. The OpenAPI compiler writes no infinity literal, precision, scale or patternMessage, so no compiled document changes.
A union chosen over a second union was read against the rest of its
conjunction by kind alone: the value readings of a union beside an enum
or a const declined wherever a union was passed over. So
{allOf: [{const: b}, {type: string}, {anyOf: [{enum: [b]},
{enum: [c, a]}]}, {oneOf: [{const: a}, {const: c}]}]} lowered to the
Enum of a and c, the const kept, with no warning, though no instance
satisfies it; without the type it lowered to the Literal b.
The rest's value set now takes in what each union passed over admits,
and the three readings that judge a union beside a value set (a union
of value sets, a union of typed branches, a union a $ref lands on) run
beside a union passed over too. A union every member satisfies is kept
there, as the one passed over is, rather than read as saying nothing,
which would have dropped both. Every spelling of the schema above now
lowers as its twin written without the anyOf: the closed empty Enum,
both branches of the oneOf named dead in one warning.
Breaking: the IR of such a schema changes, its node holding only the
members the conjunction admits, the union chosen kept beside it.
Three readers spelled a form as a signed int with a convention: - ir's tighterEnd took 1 or -1 for the side of a numeric range and returned the end, whether one was set and whether it was exclusive as three loose values. It takes a rangeSide and returns a rangeEnd with comma-ok. - merge's adopt named the base node -1 to its callback, which adoptInto decoded with +1. It now names every node by its index among base and the others, base at 0, the index adoptEncoding and keepExamples already use, so the callback passes it straight to agreeingDeclarations. - pass's walk down a discriminator hierarchy kept a vertex's nearest holder and parent in two lists filled with -1 for unreached. One list of arrivals holds both, its zero value an unreached vertex. No result changes.
A parameter named at made its doc comment read "written at at" or "the schema node at at", and one comment named a parameter that had been renamed. Each such parameter the change set wrote outside the schema lowering is named for what it holds: a pointer, a schema's document pointer, a declaration's place, a reference site, or the walk path of a struct or map. viewCommon's comment names combined, its parameter, and intersectionEntries' no longer says own "stands" for a node, a word the glossary retires. No result changes.
A fold report ended "kept what the first says, and the second is kept verbatim under Unmodeled": the first "kept" meant chosen, a sense the glossary gives kept no longer, since keeping is writing verbatim into an Unmodeled entry (docs/ir/README.md#words). It now ends "chose what the first says; the second is kept verbatim under Unmodeled", and likewise "chose the one the first gives" and "chose the type the first gives". The report of keywords kept apart said they sit "on the node the field's declarations meet in"; meet is retired for intersection, so it says "on the node built as the intersection of the field's declarations". Only message text changes. Four assertions in the schema package's tests still name the old wording, and fail until that package's tests are updated with it.
The 0.74.0 entry left out findings a consumer of 0.73.0 meets anew: - pass/budget-exceeded, an error, where a run's defaults and examples run out of judgments; - an extension value no JSON holds inside a construct kept whole, an openapi/unpreservable-construct error that dropped the construct (exit 1) at 4a7a384, now an openapi/degraded-construct warning with the construct kept without it (exit 0); - pass/bounds-admit-no-value for member counts crossed across a composition or a cycle of models; - an allOf naming only itself, a pass/composition-cycle warning on a Model at 4a7a384, now an openapi/cyclic-ref error (exit 1); - the member fold's reports, reworded to name the models and types as written and to say chose where they said kept. It also names openapi/unwidened-nullable a warning. Each is probed at 4a7a384 and cf8eb74 with the spec its bullet quotes. docs/ir/values.md said the fold adopts a default only on a yes; it refuses one only on a no and adopts on an unknown, as merge.fieldFold.adopts does. docs/cli.md and CLAUDE.md said "kept" and "stands" where they meant chosen and the member's pointer.
Four schema tests asserted the fold report's old wording, "kept what the first says, and the second ..." and "kept the one the first gives". They expect "chose" now, as the report says, and one assertion's message says the chosen one where it said the kept one.
The kinds an `if` leaves were read from its `then` and `else` by their
`type` alone, and a branch writing anything else, a maxLength or a
required among it, read as admitting no kind. So
{if: {type: string}, then: {maxLength: 2}} read as admitting no
string: {type: string, anyOf: [that, {type: integer}]} drew a false
"no value satisfies both the type and the anyOf", the same beside
enum: [abc, x], and an allOf of an object entry and
{if: {type: object}, then: {required: [a]}} lowered to a Scalar over
the entry's Model where its flat twin is the Model.
The branches are now edges of the admission walk, the one reader of
what a schema admits that every other position uses, and the `if`
sends each kind to the branch its condition decides, as that branch
admits it, whole or in part. A keyword narrowing within a kind removes
none, a branch read loosely or left unsettled on its own cycle is not
followed, and the type-only reader is left to `not` alone.
Breaking: such an allOf lowers to its Model, and a union beside such a
branch reports the branches that share no value, not the whole union.
Conflicts, resolved by carrying each side's intent: - design-rules.md: name-what-it-holds cites both one-sense-per-word and main's normative-term-outranks-figurative; decide-once, one-rule-one-implementation and fold-the-whole-set take main's move to deciding-once.md, whose Why names no file, so the branch's renamed path there is moot. - finding-cost.md: the measuring rules take main's move to reading-a-run.md, carrying the branch's "no substitute" for the retired "no stand-in". - testing.md: main's two new guard rules, then the branch's heading "stays where it keeps a reading whole". - CLAUDE.md: main's naming bullet, followed by the branch's sentence on the glossaries' one sense per word. - testnames_test.go: main's wording of testNamePlaceholders' comment, with the branch's "refer to" for the retired "stand for".
The rules main gained in #2379 wrote words the glossary that opens docs/compilers/openapi.md retires: "stand" (a stand-in, a count that stands out), "meet" for an intersection and "reach" for a keyword scope. They now say stub, as tests-that-bite.md already does, "is well above the rest", the intersection and the keyword scope. The key test-first-against-a-stand-in keeps its word, as rule keys do.
A discriminator an inline allOf entry writes lowers onto the Model the allOf composes, as one written beside the allOf. The node kept none of what the object writes that reaches no IR field: its x- extensions and the keys OpenAPI defines for no Discriminator Object, such as `required: [dogType]` and `x-ext: 1`, were dropped, where the twin written beside the allOf keeps them under openapi:discriminator/<key>, as out_of_scope and vendor_extension. The node holding such a discriminator now keeps them as the twin does, under the same keys and reasons, each at the pointer it is written at. A discriminator kept whole holds them instead, as the twin's does.
The comment grew past the 100-word cap when the reading of an if's branches moved to the admission walk; it drops a clause the code says.
A union of value sets beside a body stating none, such as
{type: string, oneOf: [{const: a, title: A, description: dA,
deprecated: true}, {const: b, title: B, description: dB}]}, lowers to
the Enum of the members the body admits. Its members held no docs or
deprecation, and the union was kept as validation_only whatever it
said, while the union written alone gives each member what its branch
says of it.
Each member, or the Literal of one where the members are of several
kinds, now holds what the branch writing it alone, by a const or an
enum of one, says of it: its docs, deprecation, examples and
extensions, read as that branch written alone is read. A member two
branches write takes the notes of neither, so no order of them
chooses. The union is kept nowhere where the node holds all it
writes, once as validation_only where a branch says of its members
what none holds, and degraded where a branch holds no member, as
before.
Breaking: such members carry their branches' notes, and a union the
node holds whole is no longer kept beside it.
The comment on the if-branch reading test now says a branch leads back to the schema writing it, as the other tests of the walk say it.
A union of value sets beside a body stating none, every branch of which the node holds, is no longer kept beside the Enum of its members; the end-to-end tests that held it kept as validation logic now hold it kept nowhere, with the flat twin's findings alone.
The admission walk's settle now reads an if and its branches through conditionalRead, which calls conditionRead itself, so the method edge the call-graph test holds to is settle to conditionalRead.
A union judged against the value set an enum beside it states, such
as {enum: [a, b], oneOf: [{const: a, description: dA, deprecated:
true}, {const: b, description: dB}]}, lowered to the Enum of the set
with no docs or deprecation on its members, the union kept as
degraded_lowering, while the union written alone, and beside a body
stating no set, gives each member what its branch says of it.
Each member of the enum, or its Literal where the members are of two
kinds, now holds what the branch writing it alone, by a const or an
enum of one, says of it, whether the union's branches are value sets
or some are typed. Where the enum, written inline and by no const,
holds all the union says, the members it narrows the enum to among
it, the union is kept nowhere, as a union every member satisfies is
not; a branch saying of several members what none holds, or holding
none of them, keeps it as before. A note beside a const or a set a
$ref names stays with the union kept, as no member there holds it.
Breaking: such members carry their branches' notes, and a union the
node holds whole is no longer kept beside it.
A union some branch of which is no value set, chosen over a second
union that leaves the rest's value set no member, was read by its
branches' kinds. So {const: b, type: string, anyOf: [{enum: [c]},
{enum: [d]}], oneOf: [{const: c, minLength: 1}, {const: b}]} lowered
to the Union of the literals c and b, with no warning, though no
instance satisfies it, where the same schema with a oneOf of value
sets lowers to the closed empty Enum with its dead branches named.
Such a union is now read as a union of value sets there is: no branch
shares a value with the rest, so each is named dead in one warning,
and the position is the closed empty Enum keeping the const and both
unions.
Breaking: such a schema lowers to the closed empty Enum.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft makes one OpenAPI schema conjunction lower to one result wherever its keywords are written. It covers schema composition (
allOf,oneOf,anyOfand the keywords beside them), the member fold, value admission, nullability and discriminator routing, and it lands in the steps below.Progress
keywordOnEntry,bothOnEntries,kindOnEntry) and full-only apart spellings (secondOnEntry,constructOnEntry,inlineSecondOnEntry,inlineConstructOnEntry) tointernal/harness/openapicases, kept group-dependent keywords with their anchors viaGroupAnchorKeywordsand own-object keywords off entries, recorded every base finding against its open issue, and updatedMakefileand.github/workflows/gate.ymltimeouts.builtPosition) up the lowering's frames in place of finisher closures, so no lowering reads a node between its store and its finishing steps, and the schema package's one registry read isLookup. The frame that dispatches a position decides its bound homes once (boundsHeldAt), a union's among them, and hands them to the builders. The IR takes its new shape in oneIRVersionbump:Discriminator.DecodeOnlyRoutesandEnum.Constraints, theirirverifyrules, andpass's check that each decode-only route's target is a legal variant. A position hoists an alias only where a dry run of its keepers finds the alias would hold something. The gate before that run is the disjunction of the keepers' own predicates (annotation.ReadKeeps,declaresBoundand the rest), and a finding the alias would have hosted stands at the position. Naming reads a schema's conjuncts from its statement, and naming a deep nesting or a chain of titled branches allocates linearly.mergeConsumes,restKinds,notesIn,extensionsInandallOfInstay, each with a comment saying why.internal/archtestholds every production package to sharing no package-level list through its exported API (TestExportedLists_AreNotShared).Relatedevery member it decided (decided) and, for a report about two declarations, the first written of those agreeing with the one kept (kept). Reports alike but for their decided members are said once, after pruning, naming the field the models compose; one left deciding no member goes, unless it is an error, andirverifyreports a decided entry naming a node the document does not hold (ir/related-decided-unresolved). Positions compare in one order, token by token with an array index by its number, which the reference table, the fold and the schema walk read, and a table sorts them by keys written once. A fold past its budget judges the first 64 declarations written, a disjoint-visibility report sits at the first written of the declarations restricting the field, and a member written nowhere carries where each field it took from one declaration is written. The sequence-order oracle reads a report by its code, site andRelatedentries, and a report carrying no pair forgives itself alone.Unmodeledand reporting itself: the position, each inlineallOfentry and wrapper, the principal's build, a$refentry naming nothing, and the property, header and parameter carriers. The frame owning the node settles the claims once (annotation.KeptKeywordClaims). One value is one entry and one report, at the outermost writer; several keep the outermost writer's under the plain key and each other writer's under its entry key; an entry kept whole takes the reason its keywords share and one report naming them all; and a booleanexclusiveMinimumorexclusiveMaximumsettles with its bound. A node's reports come in the order its claims settle. A keyword at the value its dialect equates with its absence (readOnly: false,minLength: 0,pattern: "", a 3.0nullable: false) is read as left out by every reader, anullon a key no dialect defines is a value, and a conjunct restating its$ref's target says nothing: atypenaming the target's kinds, or an entry's keyword the target writes alike, a subset of itspropertieswritten beside or in an entry among them. AnallOfcomposes aModelonly where the kinds it reads are an object alone: a read cut short at a bound elects nothing from what the bound let in, a loop of references is read to its greatest fixpoint, a$refnaming nothing lowers as the same schema without it and keeps that twin's keys, a value set is elected before any read, value sets sharing no member are the closed emptyEnumof their value type, and conjuncts whose kinds share none are the closed bottom, each drawing oneopenapi/unsatisfiable-schemawarning. Anenum: []beside aconst, anotherenumor a$refstating a type or a set is the closed emptyEnumits flat twin gives, keeping the other set, with its oneopenapi/empty-enumwarning, and a conjunct admitting null alone is typed as{type: 'null'}is. The null verdict is computed once per position and handed to every reader there.specrules.KeywordReachclasses every keyword of every dialect row as reaching any conjunct, moving with its group, or scoped to its own object, a key no row defines among the last, and the fold set, the union's readers and the rule-consumed readers derive from it. A node built from one conjunct takesformat, the content vocabulary,items,prefixItemsand an object bound off whichever conjunct writes them, and the writers of a bound on a number as text meet as any bound's do. A keyword folds by its own writers, so entries disagreeing on one keyword still fold what they agree on. Aformator the content vocabulary beside a$refto a scalar reads as its flat twin: aScalarover the reference carrying theEncoding, or, for a narrower primitive, that primitive keeping the$ref; beside a$refto anEnuma format selecting no primitive of its own restricts it the same way, no member copied, and a recognized one is kept. A schema writing only identifier and meta keywords is silent, as{}is. A closed chain ofallOflinks writing nothing else, each read on its flattened conjunction, is anopenapi/cyclic-refloop, and a loop through a link that writes a kind is read to its greatest fixpoint. AnallOfentry is a fact of the composition listing it, so a lone$dynamicRefentry expands in place and a$refnaming an entry reads it alone;failedEntryandwrittenAsEntryare gone. A 3.0 array's missingitemsis judged per conjunction.reftablereuses one reach walk across dynamic names, so a binding over many names allocates linearly.oneOfand ananyOf, the elected union's dead branches read against the body and the union passed over, a union leaving null alone, one every branch of which is dead, and the shape judgment. Beside a body that is no object, a dead branch is named in oneopenapi/unsatisfiable-schemaat the union keyword, live branches declaring shape are aUnionconjoined with the body's kind, and the body's node keeps the union otherwise. Beside a union of an object and another kind, the body distributes by kind throughtypeformat.InstanceKindsKeywordAppliesTo, so an entry'spropertiesbeside a type list go to its object variant. A discriminator stands with its union wherever written, what a distribution keeps is kept once on theUnion, and a variant distributed from an entry's union takes the keyP/allOf/-/<k>/…, which no source pointer spells. A closure over members its own object does not declare types the model, is kept verbatim and is said, as anopenapi/unsatisfiable-schemawhere it refuses a member another conjunct requires. Value sets meet as the flatenumof their shared members, every set kept; a union of value sets alone is one set conjunct, saying nothing where every member satisfies it. A conjunction admitting null alone is the null type, the nullable-inference policy lifts a null branch where no branch lives, an entry's declarednullablefolds under either policy, and a conjoined branch's notes stay on its node. A dead branch's warning names what the body admits, an entry'stypeandformatread as written flat, entries whose discriminators disagree route nothing, a null-only outcome is theEnumof no kind in every spelling, and aoneOfrefuses the null two or more of its live branches admit.nullableis read in its own document's dialect, and an expanded$dynamicRefreads its target's null as a$refdoes. The one-reference rule governs any conjunction holding a reference (OpenAPI 3.0.3): the nullable-inference policy widens one reference through a null a value keyword ornullable: truestates, and a reference-free conjunction widens too, marked inferred; anullablethat widens nothing drawsopenapi/unwidened-nullableand says nothing to the presence oracle. A union none of whose branches admits null takes the null away, atypeof null alone decides over itsenum, a use's bit decides its null while everyScalar'sBase.Nullableis what its own schema admits, and a repeatednullin anenumis reported as admitted once. AnallOfchain no longer lowers in cubic time.Enum.Constraintsholds the bounds an enum's schema writes of the kind it lists, an entry'smaxLengthon a stringEnumamong them, andpass.ConstUnionsfolds a bounded union of stringconsts into anEnumholding them. A reader joins a model's count bounds with those of every model it composes (ir.Flattening.MemberCountBounds), whichpass.Validatereads. Beside acontentEncodingthe base staysstringand every format there is kept underopenapi/unhomed-construct, and content beside a$reflowers as its flat twin, across conjuncts and the target's chain. A type list's variant is read where its schema is written and in that schema's dialect. An unevaluated keyword is typed only where every evaluator it reaches is one the IR types, following ref-only schemas andoneOfbranches, and kept where an unexpanded$dynamicRefor a degraded entry may evaluate; a false element is a node of its own. A count, and an unresolved$ref, is reported once, a refused count at its keyword. A crossed composition cycle warns, and atypeits node already homes says nothing.merge's fold andview,schema,Flattening.MemberCountBoundsandpassread a type's composition throughir.ComposedOfand its bounds throughir.ConstraintIntersectionandir.ConstraintKeyword, andmerge's own keyword list is gone, so amultipleOfjudgment past 1,024 significant digits answers in bounded time. Composition reach comes fromirfacts.CompositionReaches, and a composition cycle settles as one unit: up to 64 declarations as one flat fold, past that as a staged chain keeping every loser. Each run builds one alias-chain index inschema,operationandpass, so every alias walk reads a chain of any length, the 64-hop caps gone. A declaration is read in its own document, and a copy in another document restates its target where both read alike.ir.ValueAdmissionReader, set-based fold selection and minted IDs, and text-only text bounds.Discriminator.DecodeOnlyRoutesfilled, unified route table and model settlement, and pass discriminator checks.main).The composition and alias-chain readers are built before value admission, which reads the alias-chain index and
ir.ComposedOfthey add.Five issues these steps touch stay open. #2072 is decided, one report per keyword kept, as the flat spelling reports it, and #2118's and #2119's reproductions lower as they ask, but the schema cases still record spelling findings under each one's reason (
split-degraded-reports,entry-competing-value-setandentry-value-set). #2371 is settled for a union whose branches are value sets; a union of typed branches beside a value set, as its reproduction writes, is still keptdegraded_lowering, now with its dead branch named. #1993's hierarchy at 3,000 levels now compiles wheremainrefuses it withopenapi/budget-exceeded, but the whole compile still costs whatmain's does and grows about 2.8 times per doubling of the depth.Breaking
At this head:
ir.IRVersionis 0.74.0, with two members.Discriminator.DecodeOnlyRoutes(decodeOnlyRoutes, omitted when empty) maps a wire value to the type a payload carrying it routes to, for each route the source gives thatMappingleaves out. A decoder reads it afterMapping, or after a union's variant type names where itsMappingis empty, and an encoder never writes it.irverifyreports a tag one discriminator routes by two spellings (ir/discriminator-route-repeated).Enum.Constraints(constraints, omitted when nil) holds the bounds an enum's schema writes of the kinds of value itsValueTypeholds, closed or open, andir/bound-of-another-kindholds an enum to them. The OpenAPI compiler fillsEnum.Constraints; no compiler writesDecodeOnlyRoutesyet. A consumer pinned to 0.73.0 refuses a document carrying either member.$refthere does, where an alias holding only itsBasestood. This holds where it is written alone, or beside only keywords no node holds ($anchor,$comment,$defs,$dynamicAnchor, anullablein a 3.1 or 3.2 document, which stays on the reference,definitionsunder draft-04, draft-06 or draft-07,$recursiveAnchorunder 2019-09), atitems,prefixItems,additionalProperties, aoneOfbranch or a body.$ref, or a$dynamicRefnaming a JSON pointer, whose one other keyword isdefinitionsunder draft-04, draft-06 or draft-07 or$recursiveAnchorunder 2019-09 lowers to its target the same way, at those positions and at anallOfentry. A component written so over an object changes kind at its own ID: it was aScalarwith its target asBase, and is now theModelwhoseBaseis its target, as a component writing an annotation beside its$refis.Modelcomposing it. Atitems,prefixItems,additionalProperties, aoneOfbranch or a body, that covers a$refor an expanded dynamic reference beside only annotations, unknown keywords, adependentRequired, or extensions inside adiscriminatorwhose values no JSON value holds (such asexample: .nan), and, over an object or beside a dynamic reference, an annotation saying nothing (description: '',deprecated: false). Atitems,prefixItems,additionalProperties, aoneOfbranch or a request or response body, it covers a schema lowered to a shared primitive, itself or through the inlineallOfentry it refines to, beside keywords it does not read whose values no JSON value holds (required,defaultorminimumon a string, or an unknown keyword). What the node's keepers reported stands, once, at the position, and a use admitting null keeps itsModel. On the golden spec this drops oneModelholding only itsBase, at a 4XX response body.Modelcomposing that object, as a$ref's is, where it was aScalarwith thatBase. So a component such asU: {$dynamicRef: '#t', description: u}, where#tnames an object, changes kind at its own ID.oneOforanyOfbeside structural keywords holds a bound anallOfentry writes, such asmaxItems, in its node'sConstraintsalone, as its plain twin does. It no longer also keeps it underopenapi:maxItemswith a finding.allOfentry bringing the declaration, and names no node inProvenance.Node. Each lists every member it decided asdecided, and one about two declarations names askeptthe first written of those agreeing with the one kept, so no order of the entries decides it. Reports alike but for those members are said once, after pruning, naming the field they compose, and one left deciding none goes, unless it is an error.irverifyreports adecidedentry naming no type or property the document holds (ir/related-decided-unresolved).defaulteach kept or reported it twice. Values written otherwise keep the outermost writer's under the plain key and each other writer's under its entry key, so two writers giving an unknown key or a passed-overenumdifferent values no longer lose one, nor drawopenapi/internal-invariant. An entry kept whole takes the reason its keyword takes alone,validation_onlyorno_ir_homewhere it tookout_of_scopeordegraded_lowering, and one report naming every keyword it holds. A booleanexclusiveMinimumorexclusiveMaximumis never kept under a plain key beside another writer's bound. A kept$dynamicRefmoves fromopenapi:$reftoopenapi:$dynamicRef, an entry's value set kept apart moves from its entry key toopenapi:enumoropenapi:constwhere no other writer writes that key, and a vendor extension whose value no JSON holds is left out of an entry or keyword kept whole, with its warning, where the whole construct was refused.{type: string, minLength: 0}holds noConstraints.MinLength, afalseuniqueItemsleavesConstraintsnil, afalsereadOnlyorwriteOnlyon a type declaration is no longer kept,pattern: ""is kept nowhere, and a position writing only such a keyword beside a$ref, a 3.0nullable: falseamong them, hoists no node. Anullon a key no dialect defines is a value.$refbeside it says nothing.{allOf: [{$ref: Obj}], type: object}lowers to the reference toObj, where an anonymousModelwhoseBasewasObjstood, and a carrier there readsObj's description and deprecation. An entry's keyword the referent writes alike,itemsamong them, is neither kept nor reported, and an entry'spropertiesrestating some of the referent's alike, beside no union and no other writer ofproperties, no longer fold as members of the composition's own.allOflowers to aModelonly where the kinds it reads are an object alone, so these change node kind at their IDs. A read cut short at a bound, a loop of references, a$refnaming nothing and a value no reading converts give what the other conjuncts say, aScalar,List,UnionorEnumwhere aModelstood; anallOfnested past the flattening depth is the top type keeping it whole; value sets sharing no member are the closedEnumwith no member of their value type, aconstbeside anenumon one schema among them, where they were aLiteral, the top type or a composedModel; and conjuncts whose kinds share none, or value sets that type noEnum, are a closedModelwith no member keeping each conjunct verbatim. Conjuncts whose types share onlynullare the null type, where they composed an openModel. AnallOfentry whose$refnames nothing is split like any entry writing a$refbeside other keys, so what it writes beside the reference reaches the position. A schema whoseallOfnames itself besidepropertiesand an untyped union takes itself asBase, marked by the kind-inference policy, where it kept the$ref. Atypeword no dialect defines reads in a conjunction as it lowers alone, as a string. In a 3.1 or 3.2 document under the default nullable-inference policy, conjuncts sharing only the null anullable: truegives are no longer disjoint. Two$refentries writing one reference text against two bases are kept apart, and the election between them no longer follows their order.openapi/degraded-constructto the newopenapi/unsatisfiable-schema, at the same place and in the same words, so a--triagerule naming the old code no longer matches it. Each bottom draws its own, anallOfbeside an inlinefalseentry included, and an entry declaring a type other thanobjectbeside it is reported by an info, where it drew a warning. A node's findings come in the order its claims settle: the readers', the build's, annotations, folds, use bindings, refinement keeps.enum: []beside aconst, anotherenumor a$refstating a type or a set is the closed emptyEnumits flat twin gives, typed as that twin is, where it dropped theconst, kept both sets underopenapi/unsatisfiable-schema, or was untyped beside a$ref. Beside aconstor anenumthe other set is kept verbatim under its writer's key; beside a$refnothing is kept, as the target states its own; and theopenapi/empty-enumwarning is the one report. A conjunct admitting null alone, beside others admitting null too, gives the closed emptyEnum{type: 'null'}gives, no other conjunct narrowing its type. An entry, or the keywords beside theallOf, restating a subset of the$ref's target'spropertiesalike says nothing, as a full restatement does. A report naming the node a kept keyword settled on saysscalarwhere it saidprimitive.format, the content vocabulary,items,prefixItemsand an object bound beside atypelist type the node instead of being kept, atypelist namingobjecton an entry is merged rather than kept, and a bound an inline primitive principal takes none of hoists the position's node to hold it, as written flat. Entries disagreeing on one keyword fold the keywords they agree on, bounds and notes alike. The writers of a bound on a number as text meet: the node keeps the met writing and no entry for it, and two steps meeting in a multiple neither writes are kept as that multiple; beside a principal kept whole, each replaced step is kept as written.formatbeside a$refto a scalar reads as its flat twin over the target's type. One selecting no primitive of its own, or the content vocabulary over a string or bytes, makes the position aScalarwhoseBaseis the reference, carrying theEncoding, at a carrier too; one selecting a narrower primitive roots the position at it, keepingopenapi:$refwith one info, so what the target bounds is reached through that kept$refalone; one the target already is says nothing. Beside a$refto anEnum, a format selecting no primitive of its own makes the same restrictingScalar, no member copied, and a recognized format (uuid,int32,date-time) is kept verbatim underopenapi:format(degraded_lowering), as its flat twin keeps it on the enum. Atypelist namingnull,{type: [string, 'null']}, reads a format by its other kind as its 3.0 twin does, and a target spelt through anallOfholding no$refis read as its flat twin.$comment,$id, the anchors,$defsand the like) initemsoradditionalPropertieslowers as{}does, to the top type keeping the applicator, where it inferred aListor aMapT. A closed chain ofallOfs each holding one$refand nothing else saying something is anopenapi/cyclic-referror, a new one in a valid document, its members lowering as a bare$refloop's do. A link is read on its flattened conjunction, so a nested one-entryallOf, atrueentry or a notes-only entry beside it closes the loop too, and a link's$refs on the loop, repeated or not, keep nothing; an entry writing a kind or a member beside its$refis no link, so its position lowers to its composition, and a loop through a link that writes a kind is read to its greatest fixpoint, its member writing the kind standing as that kind. A number-as-text bound beside atypelist is kept once, on the text variant. A lone$dynamicRefentry, also through nested one-entryallOfs, expands in place, and a$refnaming an entry reads it alone, so it may drawopenapi/unsatisfiable-schema. A 3.0 array is reported missingitemsonce per conjunction, at the position, where it was reported at the entry theallOflowered from.typelist holding no object, or null alone), a branch sharing no kind with the body is dead: dropped from the variants and named in oneopenapi/unsatisfiable-schemawarning at the union keyword, the union kept once,degraded_loweringwhere it holds a dead branch andvalidation_onlyotherwise. Live branches declaring shape (a$ref, aformat) are aUnionconjoined with the body's kind; otherwise the body's node keeps the union in every spelling, so{allOf: [{type: string}], oneOf: [{type: string}]}and its entry spelling are theScalarkeeping theoneOf, where they were aUnion. Two unions are read together, each unelected union naming its own dead branches, the passed-over one keptdegraded_lowering, and where only null survives the position is the closed emptyEnumbehind a nullable reference. A discriminator stands with its union, and a union beside notes stands alone, wherever written.Scalarholding its kind's bounds, andpropertieson an entry beside atypelist are its object variant's. A body naming no kind beside branches of no object splits the same way, keeping its object keywords. What a distribution keeps over its variants is kept once, on theUnion, and a variant distributed from an entry's union is keyed<position>/allOf/-/<k>/…. A branch writing only$schema,$vocabularyor an$idwith no relative reference beneath it declares no shape.additionalPropertiesclosure or typed catch-all, or apatternProperties, over members its own object does not declare still types the model, and is now kept verbatim (degraded_lowering) with an info at the keyword, or anopenapi/unsatisfiable-schemawarning where it refuses a member another conjunct requires; a branch requiring such a member is dead, and a model the composition brings closed by its own closure, refusing a member another conjunct requires, draws that warning at the position.enumof their shared members, anEnumof one kind or aUnionof literals of several, every set kept verbatim. A union whose branches are value sets alone is one set conjunct: where every member of the set beside it satisfies it, it says nothing and is neither kept nor reported; where some do, the position is theEnumof those, each branch holding none named dead.typenaming null alone is a body, and a conjunction admitting null alone is the null type. Under the nullable-inference policy a null branch, or anullable: true, beside a body keeping null out where no branch lives makes the position null alone behind an inferred nullable reference; with the policy off the branch is dead. An entry'snullable: truebeside itstypefolds under either policy and is no longer kept. A branch conjoined with a scalar body keeps its description, examples and extensions on its node, where they were dropped with no report.typelist it said the body admits objects alone. An entry'stypebeside a union is read as written flat and no longer kept, and itsformatis kept where it was dropped; the schema cases' reason for openapi: decide whether a union beside a scalar body is the union or the scalar keeping it #2108 is removed. Entries whose discriminators disagree route nothing. A null-only outcome is the closed emptyEnumof no kind in every spelling, its dead branches named, where atypelist typed it. AoneOfrefuses the null two or more of its live branches admit, so such a reference admits no null, or admits it only as the nullable-inference policy infers.Enumholds the bounds its schema writes of the kind it lists inEnum.Constraints, closed or open, where each was kept verbatim with an info, and an entry'smaxLengthon a stringEnumjoins them; theUnionof literals a mixed enum lowers to fillsUnion.Constraints.pass.ConstUnionsfolds a bounded union of stringconsts into anEnumholding the bounds.pass.Validatejudges a model by the count bounds of every model it composes, so a default or bounds a base's count rules out drawpass/default-outside-typeorpass/bounds-admit-no-value.contentEncoding, on the same conjunct or another, aScalar'sBaseisstringwhere it named a format's primitive, and itsEncodingcarries noWireType; every format kept there is reported asopenapi/unhomed-construct. Content beside a$refto a scalar read from the text, or to a target spelt as anallOf, lowers as its flat twin, aScalaroverstringcarrying theEncodingwith the$refkept.typelist's variant take the IDs and pointers where the source writes them, and are read in that schema's own dialect; each variant's own ID stays. A type a union of literals, or an undecided node, already restates is no longer kept underopenapi:type.unevaluatedItems: falsebeside aprefixItemsis aTuplewith noRest, alone aListof the false schema's node, andunevaluatedProperties: falsebesideif,dependentSchemasor an overlapping distributedoneOfis kept verbatim where the model was closed after composition.$refpast the merge bound one per pointer.allOfreferences to null admits null at every link in every declaration order, and an expanded$dynamicRefreads its target's null. A union none of whose branches admits null takes the null out of atypelist beside it, so{type: [string, 'null'], oneOf: [{type: string}]}is no longer nullable. The nullable-inference policy widens a reference only through a null a value keyword ornullable: truebeside it states, no longer through a union's null branch, and widens a conjunction holding no reference, marked inferred. Anullable: truethe conjunction keeps null out of draws the new infoopenapi/unwidened-nullable, and a 3.0nullable: false, or anullable: truethat widens nothing, beside anallOfof one$refleaves the position the reference.Scalar'sBase.Nullableis what its own schema admits, a restriction's and an alias's included, marked inferred where only the policy admits the null; a use's own bit still decides its null. Atypeof null alone decides over itsenum: listingnullit is the null type, a union branch so written the union's null, and the members it excludes are kept underopenapi:enum. A repeatednullin anenumis reported as admitted once. A member one entry declares as a nullableemailstring and another as a plain string is theemailstring.Between
7d7208585ande912491c8, the golden spec's IR loses one node, theModelat/paths/~1zones~1{zone_id}~1dns_records~1batch/post/responses/4XX/content/application~1json/schema, whose response now names its referent, and otherwise differs only in its version stamp and its findings. Intestdata/, the three aliases that stood at an expanded dynamic reference go, andkeywords-at-every-outcome.yaml's componentDyn, an expanded$dynamicRefto an object, changes fromScalartoModel.Between
e912491c8and721310442, the golden spec (cloudflare/api-schemas@904c5434) loses 55 anonymousModels, each holding aBaseand nothing else: 41 properties and 14 request or response bodies now name the referent, and 16 of those properties read its description, one its deprecation too. The twocompatibility_flagsproperties stop keeping anitemsrestatingworkers_compatibility_flag, andzero-trust-gateway_api-response-common-failure'serrorsandmessages, eachtype: objectbeside a$refto an array, become the closed bottom, keeping theirtype. 37 types change in all. 14 warnings move toopenapi/unsatisfiable-schemaat their places and in their words, 5 infos go (the twoitemsreports and three at the bottom), 9 member-fold infos name the referent where they named a removedModel, and of the findings both draw, two reorder at their nodes. Nothing else in the IR moves, andirVersionstays 0.74.0. Intestdata/, 17 goldens move.Between
721310442andacf451298, the golden spec's threeschema_idsites (api-shield_public_schemaandapi-shield_schema_hosts's properties and the parameterapi-shield_schema_id_path) becomeuuid, keepingopenapi:$reftoapi-shield_uuid-2where they named it and keptopenapi:format, and their three infos move from the entry writing the format to the one writing the$ref. TheminLength: 36api-shield_uuid-2writes is now reached only through that kept$ref, as a beaten reference's target is. Nothing else moves. Betweenacf451298and993ca016d, nothing moves. Between993ca016dandc0ff23bab,tls-certificates-and-hostnames_custom-hostnamekeeps itsBaseand no longer redeclares the three properties it restates, itsrequiredlist now aRequires, and 12 infos sayscalarwhere they saidprimitive. Nothing else moves. Betweenc0ff23baband5ff6dfe4a, nothing moves, and through9f36c9655to5c7bda09anothing moves either:5c7bda09a's types, sections and finding sequence equalc0ff23bab's. Between5c7bda09aande7b870541, 35 composed variants distributed from an entry's union take the…/allOf/-/<k>/…key, and the 14Unions naming them follow,dlp_EntryUpdate's discriminator mapping among them; two of the variants,magic_app_config_add_single_request's, no longer keep the passed-overanyOf, which theUnionkeeps once. The nine dead-kind sites, one flatvalueamong theposture-apischemas and eightneedle.valueproperties, each draw oneopenapi/unsatisfiable-schemaat the union keyword, and the eightneedle.valueproperties now name aScalarof their own keeping the union, with an info at the entry writing it.mconn_connector_interrupts_resultand thepatchesandputsitems ofemail-security/settings/url_ignore_patterns/batcheach draw oneopenapi/unsatisfiable-schemafor a composed model closed against a member another conjunct requires, and the twocloudforce-oneeventsaggregationsitems type their catch-all as a nullable string, keepingopenapi:additionalPropertieswith anopenapi/unsatisfiable-schemawarning, as it refuses thecountanother conjunct requires, where they kept the whole entry with an info.api-shield_operationandzaraz_zaraz-config-history-response'sresultcatch-all no longer keep an unhomednullable, nor draw its info. 14 warnings and 8 infos are new and 4 infos go; nothing else moves.Between
e7b870541and1c1b4f88b,firewall_components-schemas-mode'smaxLength: 12moves fromUnmodeledinto itsEnum.Constraints, with its info gone, and nineerrorsresponse properties, each{type: array, items: {$ref: …}, enum: [[]]}, no longer keepopenapi:type, their info namingitemsalone. Nothing else moves. Between1c1b4f88band9707c9c84, nothing moves. Between9707c9c84andafda9a7e2,pages_env_varsandpages_deployment_config_values_request'senv_varsmark their nullable catch-all as inferred by the nullable-inference policy, each with anopenapi/inferred-nullableinfo. Betweenafda9a7e2and2a728b2cf, the IR is byte-identical.Between
2a728b2cfand6994c782b,logpush_logpull_optionsanddnssec_dnskey_signing_key'sprivkey, the golden spec's two nullable restrictions, take aBaseadmitting null; 29 references gain the nullable-inference mark, no bit changing; 8openapi/inferred-nullableinfos are added; andapi-shield_operation's entry andzaraz_zaraz-config-history-response'sresultcatch-all each draw oneopenapi/unwidened-nullable. Nothing else moves.Still to land: invalid discriminator errors unified. This section gains the closing list, the golden differential, the limits and the carried questions as that work lands.
Test plan
7d7208585, CI's gate run 46185136887 passed.7d7208585,go test -count=1 ./internal/harness/openapicases -run TestFull_ -full -timeout 40mpassed (162.3s); the gate does not run it.1cf9539a7, against a binary of7d7208585:cloudflare/api-schemas@904c5434): IR and diagnostics byte-identical but for theirVersionstamp.testdata/(314 specs): three specs differ, each by the one alias that stood at an array'sitemswritten as an expanded$dynamicRef(two) or$recursiveRef(one). Nothing else moves.allOfprincipal, each given two of 13 keywords beside six outer keywords, atitemsand as a component) reorders no finding list.schemaBodyandkeepingUnreadallocate about 304k to 312k fewer objects.compilers/openapi/e2e,compilers/openapi/internal/schemaandinternal/harness/openapicases, timed under coverage at7d7208585and at1cf9539a7and scaled to run 46185136887's coverage-step times, each project under 480 s.1cf9539a7, CI's gate run 46288797166 passed.a18eb82e4, against a binary of1cf9539a7:morphic-harness's oracles the sequence-order oracle finds nothing, as all butno-error-diagnosticdo, which finds the spec's fouropenapi/unresolved-security-schemeerrors.testdata/'s 314 and 1,954 from a corpus of public API descriptions): 22 differ, 21 in their fold reports alone and one in the order of its errors, and in each the IR is byte-identical but for its findings.a18eb82e4, CI's gate run 46291734360 passed.f8283f78c, CI's gate run 46297544249 passed.e912491c8, CI's gate run 46393016557 passed.721310442, against binaries ofmain(4a7a384c9) and ofe912491c8:openapi/internal-invarianton both, exit 0 at the head) and openapi: a readOnly or writeOnly two allOf writers give otherwise keeps one value and loses the other #2128's.morphic-harness's sequence-order oracle finds openapi: value sets past the member bound beside an allOf entry are reported as sharing no value in one entry order #2100's and openapi: a readOnly or writeOnly two allOf writers give otherwise keeps one value and loses the other #2128's specs ate912491c8and nothing at the head.e912491c8and721310442under Breaking, both compiles exiting 1 on the spec's fouropenapi/unresolved-security-schemeerrors.721310442, CI's gate run 46408728691 passed.acf451298, CI's gate run 46419672593 passed.993ca016d, CI's gate run 46431374818 passed.c0ff23bab, against binaries ofmain(4a7a384c9) and of721310442:$ref), openapi: an items on an allOf entry beside a declared array is kept, where beside the allOf it types the list #2039's (its comments' type list and splititemsincluded), openapi: an object bound on an allOf entry beside a type list is kept on the union, where beside the list the object variant holds it #2062's, openapi: a bound beside a primitive principal at a property or parameter is kept on the carrier, where flat it hoists a node #2116's at a property and a parameter, openapi: a bound beside a type-list principal carrying a number as text is kept on the union, where flat it is kept on the text variant #2117's, openapi: decide whether a 3.0 array's missing items is judged per allOf entry or per conjunction #2048's (withRefYandA), openapi: decide whether allOf entries that agree on a bound fold it when they disagree on another keyword #2049's, openapi: infer no kind from an items or additionalProperties schema that writes only a comment #2082's (withadditionalPropertiesand theallOfspelling), openapi: a $dynamicRef on the only entry of an allOf is reported as written beside another conjunct #2056's, openapi: a $ref naming an allOf entry that writes a $dynamicRef reads the entry as every kind #2058's first spec, openapi: decide whether an allOf naming only the schema itself is a reference loop #2042's (exit 0 on both, exit 1 with twoopenapi/cyclic-referrors at the head) and openapi: an empty enum on an allOf entry composes a model, where an enum with members and the same enum beside the allOf do not #2066's seven spellings. openapi: a $ref naming an allOf entry that writes a $dynamicRef reads the entry as every kind #2058's second spec shows its defect onmainand lowers as it asks from721310442. openapi: replace the schema package's predictions of what a lowering builds with what it reports #2083's Done-when grep listsmergeConsumesandrestKindsalone, each kept with a comment saying why.721310442,acf451298,993ca016dandc0ff23bab: the differentials under Breaking, each compile exiting 1 on the spec's fouropenapi/unresolved-security-schemeerrors.c0ff23bab, CI's gate run 46438433266 failed: one compile's allocation bound tripped when a garbage collection emptied the encoder's pooled buffer just before it, because the check that no settlement rewrites an alias copied each alias whole. At5ff6dfe4aeach copy is a digest the encoding streams into, held byTestTypes_FinishHoldsNoCopyOfAnAliasEncoding, and a declared use reads its alias chain once.5ff6dfe4a, CI's gate run 46460007001 passed;compilers/openapi/e2etook 328 s against the 600 s timeout.9f36c9655, CI's gate run 46465203322 passed.5c7bda09a, CI's gate run 46468116782 passed.e7b870541, against binaries ofmain(4a7a384c9) and of5c7bda09a:allOf, whichmainrefuses with twocompile/registry-refusederrors), openapi: a union alone on an allOf entry beside a discriminator distributes, where the discriminator written beside the union leaves it standing #2104's two, openapi: a union beside an allOf of notes alone distributes, where beside the notes themselves it stands alone #2105's two, openapi: a null-only union on an allOf entry beside its type keeps the union validation_only, where every other spelling keeps it degraded #2106's, openapi: a oneOf beside an allOf whose entry writes an anyOf lowers apart from the two on one schema #2110's, openapi: a union of null alone beside a type list with an object lowers to a model, where beside an allOf of the list it is null alone #2111's, openapi: an inline type list holding null on an allOf entry beside a union is kept on each variant, where written beside the union it is read #2112's comment, openapi: a oneOf and an anyOf on one schema take their variants from the elected union alone #2115's, openapi: a keyword kept verbatim beside a union on an allOf entry is copied onto every variant, where beside the allOf it is kept once on the union #2054's, openapi: an additionalProperties closure is typed over members its own object does not declare #2047's, openapi: properties beside a union of an object and another kind do not lower to a model for the object branch alone #2046's and openapi: a union branch writing only $schema, $vocabulary or $id declares shape, so its union distributes #1859's (with$vocabularyand an$id). openapi: an inline type list holding null on an allOf entry beside a union is kept on each variant, where written beside the union it is read #2112's own spec shows its defect onmainand lowers as it asks at5c7bda09a.morphic-harnessfinds nothing on the 18 specs at the head.c0ff23bab,5c7bda09aande7b870541: the differentials under Breaking.e7b870541, CI's gate run 46472686510 passed.1c1b4f88b, CI's gate run 46492106258 passed.9707c9c84, CI's gate run 46495702701 passed.afda9a7e2, CI's gate run 46501033128 was cancelled by the next push.2a728b2cf, against binaries ofmain(4a7a384c9) and ofe7b870541:mainand not at the head: openapi: an instant format beside a contentEncoding lowers to an instant under that encoding #1908's (withunixtime), openapi: a count two readers keep is kept or refused twice, with a report each #1895's three counts, ir: a bound beside an open enum has no typed home #2004's (with a component and an entry'smaxLength), docs/ir: decide whether a model's bounds are joined with those of its base and mixins #2043's, openapi: a type array's variant reads its schema at <pointer>/type/<index>, which addresses none of it #1888's (with its comment's inferred union), openapi: a schema under a type list's array variant is read in the enclosing schema's dialect #2103's (with its comment'sdependencies), ir: decide whether an array's rest beside a live unevaluatedItems false is typed #1883's and openapi: a model closed after composition refuses members a kept applicator evaluates #1904's, openapi: a branch whose $ref lies past the merge bound is reported twice at one pointer when another $ref names it #1570's (with a property and aoneOfnaming the branch), openapi: a type read through more than 64 alias scalars is decided as though the chain ended there #1994's comment (a bound 64 and 100 aliases away) and openapi: two models composing each other can settle one member to two types #1995's two cycles under both namings. openapi: decide whether a union beside a scalar body is the union or the scalar keeping it #2108's and openapi: a union branch sharing no kind with a rest that is not objects alone stays a variant, unreported #2089's reproductions lower as they ask, the beside-the-allOfwarning namingobject or string.mainretires 3.66 G instructions (3.63 to 3.67, three alternating runs,GOMAXPROCS=1), the head 0.57 G. openapi: a hierarchy composing a redeclaring model at every level costs time quadratic in its depth #1993's hierarchy: at 1,250 and 2,500 levels the head retires whatmaindoes (13.3 G and 37.6 G, medians of three); at 3,000mainrefuses it withopenapi/budget-exceededand the head compiles it.e7b870541,1c1b4f88b,9707c9c84,afda9a7e2and2a728b2cf: the differentials under Breaking.2a728b2cf, CI's gate run 46503019682 passed.6994c782b, against binaries ofmain(4a7a384c9) and of2a728b2cf:docs/ir/scalars.mdstates the rule.2a728b2cfand6994c782b: the differential under Breaking.6994c782b, CI's gate run 46508195330 passed;compilers/openapi/e2etook 213 s against the 600 s timeout.03298736d, which rewrites three Status lines indocs/compilers/openapi.mdto the rules the closed issues landed, CI's gate passes.make gate,make race, andmake caseson the final head.Related: #2211, #2209, #1985, #2114, #1845, #1843, #2282
Closes #2324, closes #2084, closes #2086, closes #2133, closes #2073, closes #2067, closes #2113, closes #2213, closes #2125, closes #2057, closes #2064, closes #2065, closes #2070, closes #2091, closes #2092, closes #2100, closes #2122, closes #2126, closes #2127, closes #2128, closes #2066, closes #2210, closes #2107, closes #2039, closes #2062, closes #2116, closes #2117, closes #2048, closes #2049, closes #2082, closes #2056, closes #2058, closes #2042, closes #2083, closes #2101, closes #2104, closes #2105, closes #2106, closes #2110, closes #2111, closes #2112, closes #2115, closes #2054, closes #2047, closes #2046, closes #1859, closes #2108, closes #2089, closes #1908, closes #1895, closes #2004, closes #2043, closes #1888, closes #2103, closes #1883, closes #1904, closes #1570, closes #1950, closes #1994, closes #1995, closes #2121, closes #2120, closes #2109, closes #2090, closes #1906, closes #1903, closes #1967.