@amritk/helpers/extract-refs | extractRefs | Collect every $ref reachable from a schema. |
@amritk/helpers/resolve-ref | resolveRef | Resolve a $ref — JSON Pointer, $anchor name, or URI — against a root schema. |
@amritk/helpers/build-anchor-map | buildAnchorMap | Build a map of $anchor / $dynamicAnchor name → JSON Pointer. |
@amritk/helpers/build-dynamic-ref-map | buildDynamicRefMap | Build a map of $dynamicAnchor → resolved location. |
@amritk/helpers/resolve-dynamic-refs | resolveDynamicRefs | Replace $dynamicRef occurrences using the map above. |
@amritk/helpers/assert-id-scopes | assertIdScopes | Reject a document whose $id-scoped fragment ref resolves to nothing in its own resource. |
@amritk/helpers/max-schema-depth | MAX_SCHEMA_DEPTH, assertSchemaDepth | The nesting cap every recursive walker enforces. |
@amritk/helpers/upgrade-draft07-schema | upgradeDraft07Schema, isDraft07Schema | Upgrade a Draft-07 schema to 2020-12. |
@amritk/helpers/ref-to-filename | refToFilename, toKebabCase | Convert a $ref to a stable filename. |
@amritk/helpers/ref-to-name | refToName | Convert a $ref to a TypeScript identifier (PascalCase). |
@amritk/helpers/walk-ref-graph | walkRefGraph, RefNode | The shared $ref-graph traversal every generator runs: upgrades draft-07, resolves each ref, rewrites $dynamicRef, derives type/file names, and hands one pre-computed node per output file to a visit callback. |
@amritk/helpers/build-resource-registry | buildResourceRegistry, ResourceRegistry | Read a document's $id base-URI scopes once, expressed as JSON Pointers. |
@amritk/helpers/normalize-ref-scopes | normalizeRefScopes | Rewrite every $ref / $dynamicRef to a plain root-relative JSON Pointer, applying the $id bases in scope. |
@amritk/helpers/resolve-scoped-ref | resolveScopedRef, ScopedRefTarget | Where a $ref lands once the $id bases in scope are applied. |
@amritk/helpers/graft-external-schemas | graftExternalSchemas, GraftedSchema | Fold already-loaded external documents into the document being generated so cross-document refs resolve like local ones. |
@amritk/helpers/prune-external-schemas | pruneExternalSchemas | Drop the grafted documents nothing references. |
@amritk/helpers/extract-dynamic-anchor-defs | extractDynamicAnchorDefs | Collect a #/... ref for every subschema carrying a $dynamicAnchor. |
@amritk/helpers/fold-nullable | foldNullable | Rewrite OpenAPI 3.0 nullable: true into a null member of type. |
@amritk/helpers/derive-root-type-name | deriveRootTypeName | Turn a schema title into a PascalCase root type name. |
@amritk/helpers/read-key | readKey, declaresKey | Read an author-chosen name ($defs entry, config key) off a map, treating inherited names such as __proto__ as absent. |
@amritk/helpers/assign-key | assignKey | Assign a key on a rebuilt object without letting __proto__ reach the prototype setter. |
@amritk/helpers/schema-guards | isSchemaObject, hasType, hasProperties, hasOneOf, hasAnyOf, hasAllOf, hasEnum, hasConst, hasPattern, hasFormat, hasDefault, hasExamples, hasRequired, hasItems, hasAdditionalProperties, hasMinLength, hasMaxLength, hasMinimum, hasMaximum, hasExclusiveMinimum, hasExclusiveMaximum, hasMultipleOf, hasMinItems, hasMaxItems, hasUniqueItems, hasMinProperties, hasMaxProperties, … | Type-narrowing predicates for JSON Schema keywords. |