fumadocs-openapi 10.8.3 → 10.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -1
  2. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +1 -1
  3. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +2 -2
  4. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +110 -0
  5. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +138 -0
  6. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +674 -0
  7. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +141 -0
  8. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +102 -0
  9. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +223 -0
  10. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +28 -0
  11. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +18 -0
  12. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +133 -0
  13. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +61 -0
  14. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +146 -0
  15. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -0
  16. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +48 -0
  17. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +172 -0
  18. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +31 -0
  19. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +433 -0
  20. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -0
  21. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +72 -0
  22. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +583 -0
  23. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +18 -0
  24. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +42 -0
  25. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +50 -0
  26. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +20 -0
  27. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +51 -0
  28. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +16 -0
  29. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +36 -0
  30. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +19 -0
  31. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +85 -0
  32. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +59 -0
  33. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +12 -0
  34. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +25 -0
  35. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +12 -0
  36. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +16 -0
  37. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +57 -0
  38. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +96 -0
  39. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +29 -0
  40. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +16 -0
  41. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +89 -0
  42. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +87 -0
  43. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +16 -0
  44. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +62 -0
  45. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +60 -0
  46. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +59 -0
  47. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +34 -0
  48. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +31 -0
  49. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +51 -0
  50. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +61 -0
  51. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +17 -0
  52. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +52 -0
  53. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +41 -0
  54. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +17 -0
  55. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +130 -0
  56. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +14 -0
  57. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +22 -0
  58. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +112 -0
  59. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +101 -0
  60. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +14 -0
  61. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +35 -0
  62. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +46 -0
  63. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +45 -0
  64. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +22 -0
  65. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +20 -0
  66. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +15 -0
  67. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  68. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +10 -0
  69. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +23 -0
  70. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +19 -0
  71. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +13 -0
  72. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +46 -0
  73. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +59 -0
  74. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +27 -0
  75. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +17 -0
  76. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +49 -0
  77. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +48 -0
  78. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +18 -0
  79. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +28 -0
  80. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +33 -0
  81. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +47 -0
  82. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +28 -0
  83. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +27 -0
  84. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +38 -0
  85. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +72 -0
  86. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +70 -0
  87. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +33 -0
  88. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +236 -0
  89. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +187 -0
  90. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +282 -0
  91. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +78 -0
  92. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js +11 -0
  93. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +256 -0
  94. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js +31 -0
  95. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-collection.js +1 -1
  96. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -1
  97. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-node.js +1 -1
  98. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-scalar.js +1 -1
  99. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/composer.js +3 -3
  100. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.js +1 -1
  101. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +1 -1
  102. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +1 -1
  103. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-end.js +1 -1
  104. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +1 -1
  105. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +1 -1
  106. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  107. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.js +1 -1
  108. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +1 -1
  109. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +1 -1
  110. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -1
  111. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/Document.js +1 -1
  112. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/anchors.js +1 -1
  113. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/applyReviver.js +1 -1
  114. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/createNode.js +1 -1
  115. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/directives.js +1 -1
  116. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/errors.js +1 -1
  117. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/log.js +1 -1
  118. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Alias.js +1 -1
  119. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Collection.js +1 -1
  120. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Node.js +1 -1
  121. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Pair.js +1 -1
  122. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Scalar.js +1 -1
  123. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.js +1 -1
  124. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +1 -1
  125. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +1 -1
  126. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/identity.js +1 -1
  127. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/toJS.js +1 -1
  128. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-visit.js +1 -1
  129. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/lexer.js +27 -15
  130. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/line-counter.js +1 -1
  131. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/parser.js +9 -5
  132. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/public-api.js +1 -1
  133. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/Schema.js +1 -1
  134. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/map.js +1 -1
  135. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/null.js +1 -1
  136. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/seq.js +1 -1
  137. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/string.js +1 -1
  138. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/bool.js +1 -1
  139. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/float.js +1 -1
  140. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/int.js +1 -1
  141. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/schema.js +1 -1
  142. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  143. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/tags.js +1 -1
  144. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +1 -1
  145. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +1 -1
  146. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +1 -1
  147. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +1 -1
  148. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +1 -1
  149. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +1 -1
  150. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +1 -1
  151. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +1 -1
  152. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +1 -1
  153. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  154. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +1 -1
  155. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringify.js +1 -1
  156. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +1 -1
  157. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.js +1 -1
  158. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +1 -1
  159. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +1 -1
  160. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.js +1 -1
  161. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  162. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/visit.js +1 -1
  163. package/dist/playground/schema.d.ts +0 -2
  164. package/dist/playground/schema.js +3 -2
  165. package/dist/requests/media/adapter.js +4 -2
  166. package/dist/requests/string-utils.js +4 -2
  167. package/package.json +11 -6
  168. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/index.js +0 -0
  169. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -0
  170. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst.js +0 -0
  171. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/index.js +0 -0
@@ -0,0 +1,130 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "../compile/codegen/index.js";
3
+ import { require_util } from "../compile/util.js";
4
+ import { require_names } from "../compile/names.js";
5
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
6
+ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
9
+ const codegen_1 = require_codegen();
10
+ const util_1 = require_util();
11
+ const names_1 = require_names();
12
+ const util_2 = require_util();
13
+ function checkReportMissingProp(cxt, prop) {
14
+ const { gen, data, it } = cxt;
15
+ gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
16
+ cxt.setParams({ missingProperty: (0, codegen_1._)`${prop}` }, true);
17
+ cxt.error();
18
+ });
19
+ }
20
+ exports.checkReportMissingProp = checkReportMissingProp;
21
+ function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
22
+ return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
23
+ }
24
+ exports.checkMissingProp = checkMissingProp;
25
+ function reportMissingProp(cxt, missing) {
26
+ cxt.setParams({ missingProperty: missing }, true);
27
+ cxt.error();
28
+ }
29
+ exports.reportMissingProp = reportMissingProp;
30
+ function hasPropFunc(gen) {
31
+ return gen.scopeValue("func", {
32
+ ref: Object.prototype.hasOwnProperty,
33
+ code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
34
+ });
35
+ }
36
+ exports.hasPropFunc = hasPropFunc;
37
+ function isOwnProperty(gen, data, property) {
38
+ return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
39
+ }
40
+ exports.isOwnProperty = isOwnProperty;
41
+ function propertyInData(gen, data, property, ownProperties) {
42
+ const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
43
+ return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
44
+ }
45
+ exports.propertyInData = propertyInData;
46
+ function noPropertyInData(gen, data, property, ownProperties) {
47
+ const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
48
+ return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
49
+ }
50
+ exports.noPropertyInData = noPropertyInData;
51
+ function allSchemaProperties(schemaMap) {
52
+ return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
53
+ }
54
+ exports.allSchemaProperties = allSchemaProperties;
55
+ function schemaProperties(it, schemaMap) {
56
+ return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
57
+ }
58
+ exports.schemaProperties = schemaProperties;
59
+ function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
60
+ const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
61
+ const valCxt = [
62
+ [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)],
63
+ [names_1.default.parentData, it.parentData],
64
+ [names_1.default.parentDataProperty, it.parentDataProperty],
65
+ [names_1.default.rootData, names_1.default.rootData]
66
+ ];
67
+ if (it.opts.dynamicRef) valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]);
68
+ const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
69
+ return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
70
+ }
71
+ exports.callValidateCode = callValidateCode;
72
+ const newRegExp = (0, codegen_1._)`new RegExp`;
73
+ function usePattern({ gen, it: { opts } }, pattern) {
74
+ const u = opts.unicodeRegExp ? "u" : "";
75
+ const { regExp } = opts.code;
76
+ const rx = regExp(pattern, u);
77
+ return gen.scopeValue("pattern", {
78
+ key: rx.toString(),
79
+ ref: rx,
80
+ code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
81
+ });
82
+ }
83
+ exports.usePattern = usePattern;
84
+ function validateArray(cxt) {
85
+ const { gen, data, keyword, it } = cxt;
86
+ const valid = gen.name("valid");
87
+ if (it.allErrors) {
88
+ const validArr = gen.let("valid", true);
89
+ validateItems(() => gen.assign(validArr, false));
90
+ return validArr;
91
+ }
92
+ gen.var(valid, true);
93
+ validateItems(() => gen.break());
94
+ return valid;
95
+ function validateItems(notValid) {
96
+ const len = gen.const("len", (0, codegen_1._)`${data}.length`);
97
+ gen.forRange("i", 0, len, (i) => {
98
+ cxt.subschema({
99
+ keyword,
100
+ dataProp: i,
101
+ dataPropType: util_1.Type.Num
102
+ }, valid);
103
+ gen.if((0, codegen_1.not)(valid), notValid);
104
+ });
105
+ }
106
+ }
107
+ exports.validateArray = validateArray;
108
+ function validateUnion(cxt) {
109
+ const { gen, schema, keyword, it } = cxt;
110
+ /* istanbul ignore if */
111
+ if (!Array.isArray(schema)) throw new Error("ajv implementation error");
112
+ if (schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch)) && !it.opts.unevaluated) return;
113
+ const valid = gen.let("valid", false);
114
+ const schValid = gen.name("_valid");
115
+ gen.block(() => schema.forEach((_sch, i) => {
116
+ const schCxt = cxt.subschema({
117
+ keyword,
118
+ schemaProp: i,
119
+ compositeRule: true
120
+ }, schValid);
121
+ gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`);
122
+ if (!cxt.mergeValidEvaluated(schCxt, schValid)) gen.if((0, codegen_1.not)(valid));
123
+ }));
124
+ cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
125
+ }
126
+ exports.validateUnion = validateUnion;
127
+ }));
128
+ //#endregion
129
+ export default require_code();
130
+ export { require_code };
@@ -0,0 +1,14 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
3
+ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.default = {
6
+ keyword: "id",
7
+ code() {
8
+ throw new Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
9
+ }
10
+ };
11
+ }));
12
+ //#endregion
13
+ export default require_id();
14
+ export { require_id };
@@ -0,0 +1,22 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_id } from "./id.js";
3
+ import { require_ref } from "./ref.js";
4
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
5
+ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const id_1 = require_id();
8
+ const ref_1 = require_ref();
9
+ exports.default = [
10
+ "$schema",
11
+ "$id",
12
+ "$defs",
13
+ "$vocabulary",
14
+ { keyword: "$comment" },
15
+ "definitions",
16
+ id_1.default,
17
+ ref_1.default
18
+ ];
19
+ }));
20
+ //#endregion
21
+ export default require_core();
22
+ export { require_core };
@@ -0,0 +1,112 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "../../compile/codegen/index.js";
3
+ import { require_util } from "../../compile/util.js";
4
+ import { require_names } from "../../compile/names.js";
5
+ import { require_code } from "../code.js";
6
+ import { require_ref_error } from "../../compile/ref_error.js";
7
+ import { require_compile } from "../../compile/index.js";
8
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
9
+ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.callRef = exports.getValidate = void 0;
12
+ const ref_error_1 = require_ref_error();
13
+ const code_1 = require_code();
14
+ const codegen_1 = require_codegen();
15
+ const names_1 = require_names();
16
+ const compile_1 = require_compile();
17
+ const util_1 = require_util();
18
+ const def = {
19
+ keyword: "$ref",
20
+ schemaType: "string",
21
+ code(cxt) {
22
+ const { gen, schema: $ref, it } = cxt;
23
+ const { baseId, schemaEnv: env, validateName, opts, self } = it;
24
+ const { root } = env;
25
+ if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef();
26
+ const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref);
27
+ if (schOrEnv === void 0) throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);
28
+ if (schOrEnv instanceof compile_1.SchemaEnv) return callValidate(schOrEnv);
29
+ return inlineRefSchema(schOrEnv);
30
+ function callRootRef() {
31
+ if (env === root) return callRef(cxt, validateName, env, env.$async);
32
+ const rootName = gen.scopeValue("root", { ref: root });
33
+ return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root, root.$async);
34
+ }
35
+ function callValidate(sch) {
36
+ callRef(cxt, getValidate(cxt, sch), sch, sch.$async);
37
+ }
38
+ function inlineRefSchema(sch) {
39
+ const schName = gen.scopeValue("schema", opts.code.source === true ? {
40
+ ref: sch,
41
+ code: (0, codegen_1.stringify)(sch)
42
+ } : { ref: sch });
43
+ const valid = gen.name("valid");
44
+ const schCxt = cxt.subschema({
45
+ schema: sch,
46
+ dataTypes: [],
47
+ schemaPath: codegen_1.nil,
48
+ topSchemaRef: schName,
49
+ errSchemaPath: $ref
50
+ }, valid);
51
+ cxt.mergeEvaluated(schCxt);
52
+ cxt.ok(valid);
53
+ }
54
+ }
55
+ };
56
+ function getValidate(cxt, sch) {
57
+ const { gen } = cxt;
58
+ return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
59
+ }
60
+ exports.getValidate = getValidate;
61
+ function callRef(cxt, v, sch, $async) {
62
+ const { gen, it } = cxt;
63
+ const { allErrors, schemaEnv: env, opts } = it;
64
+ const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
65
+ if ($async) callAsyncRef();
66
+ else callSyncRef();
67
+ function callAsyncRef() {
68
+ if (!env.$async) throw new Error("async schema referenced by sync schema");
69
+ const valid = gen.let("valid");
70
+ gen.try(() => {
71
+ gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);
72
+ addEvaluatedFrom(v);
73
+ if (!allErrors) gen.assign(valid, true);
74
+ }, (e) => {
75
+ gen.if((0, codegen_1._)`!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e));
76
+ addErrorsFrom(e);
77
+ if (!allErrors) gen.assign(valid, false);
78
+ });
79
+ cxt.ok(valid);
80
+ }
81
+ function callSyncRef() {
82
+ cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));
83
+ }
84
+ function addErrorsFrom(source) {
85
+ const errs = (0, codegen_1._)`${source}.errors`;
86
+ gen.assign(names_1.default.vErrors, (0, codegen_1._)`${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`);
87
+ gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`);
88
+ }
89
+ function addEvaluatedFrom(source) {
90
+ var _a;
91
+ if (!it.opts.unevaluated) return;
92
+ const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
93
+ if (it.props !== true) if (schEvaluated && !schEvaluated.dynamicProps) {
94
+ if (schEvaluated.props !== void 0) it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);
95
+ } else {
96
+ const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`);
97
+ it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);
98
+ }
99
+ if (it.items !== true) if (schEvaluated && !schEvaluated.dynamicItems) {
100
+ if (schEvaluated.items !== void 0) it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);
101
+ } else {
102
+ const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`);
103
+ it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);
104
+ }
105
+ }
106
+ }
107
+ exports.callRef = callRef;
108
+ exports.default = def;
109
+ }));
110
+ //#endregion
111
+ export default require_ref();
112
+ export { require_ref };
@@ -0,0 +1,101 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "../../compile/codegen/index.js";
3
+ import { require_util } from "../../compile/util.js";
4
+ import { require_ref_error } from "../../compile/ref_error.js";
5
+ import { require_compile } from "../../compile/index.js";
6
+ import { require_types } from "./types.js";
7
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
8
+ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const codegen_1 = require_codegen();
11
+ const types_1 = require_types();
12
+ const compile_1 = require_compile();
13
+ const ref_error_1 = require_ref_error();
14
+ const util_1 = require_util();
15
+ exports.default = {
16
+ keyword: "discriminator",
17
+ type: "object",
18
+ schemaType: "object",
19
+ error: {
20
+ message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
21
+ params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`
22
+ },
23
+ code(cxt) {
24
+ const { gen, data, schema, parentSchema, it } = cxt;
25
+ const { oneOf } = parentSchema;
26
+ if (!it.opts.discriminator) throw new Error("discriminator: requires discriminator option");
27
+ const tagName = schema.propertyName;
28
+ if (typeof tagName != "string") throw new Error("discriminator: requires propertyName");
29
+ if (schema.mapping) throw new Error("discriminator: mapping is not supported");
30
+ if (!oneOf) throw new Error("discriminator: requires oneOf keyword");
31
+ const valid = gen.let("valid", false);
32
+ const tag = gen.const("tag", (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(tagName)}`);
33
+ gen.if((0, codegen_1._)`typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, {
34
+ discrError: types_1.DiscrError.Tag,
35
+ tag,
36
+ tagName
37
+ }));
38
+ cxt.ok(valid);
39
+ function validateMapping() {
40
+ const mapping = getMapping();
41
+ gen.if(false);
42
+ for (const tagValue in mapping) {
43
+ gen.elseIf((0, codegen_1._)`${tag} === ${tagValue}`);
44
+ gen.assign(valid, applyTagSchema(mapping[tagValue]));
45
+ }
46
+ gen.else();
47
+ cxt.error(false, {
48
+ discrError: types_1.DiscrError.Mapping,
49
+ tag,
50
+ tagName
51
+ });
52
+ gen.endIf();
53
+ }
54
+ function applyTagSchema(schemaProp) {
55
+ const _valid = gen.name("valid");
56
+ const schCxt = cxt.subschema({
57
+ keyword: "oneOf",
58
+ schemaProp
59
+ }, _valid);
60
+ cxt.mergeEvaluated(schCxt, codegen_1.Name);
61
+ return _valid;
62
+ }
63
+ function getMapping() {
64
+ var _a;
65
+ const oneOfMapping = {};
66
+ const topRequired = hasRequired(parentSchema);
67
+ let tagRequired = true;
68
+ for (let i = 0; i < oneOf.length; i++) {
69
+ let sch = oneOf[i];
70
+ if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
71
+ const ref = sch.$ref;
72
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
73
+ if (sch instanceof compile_1.SchemaEnv) sch = sch.schema;
74
+ if (sch === void 0) throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
75
+ }
76
+ const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
77
+ if (typeof propSch != "object") throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
78
+ tagRequired = tagRequired && (topRequired || hasRequired(sch));
79
+ addMappings(propSch, i);
80
+ }
81
+ if (!tagRequired) throw new Error(`discriminator: "${tagName}" must be required`);
82
+ return oneOfMapping;
83
+ function hasRequired({ required }) {
84
+ return Array.isArray(required) && required.includes(tagName);
85
+ }
86
+ function addMappings(sch, i) {
87
+ if (sch.const) addMapping(sch.const, i);
88
+ else if (sch.enum) for (const tagValue of sch.enum) addMapping(tagValue, i);
89
+ else throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
90
+ }
91
+ function addMapping(tagValue, i) {
92
+ if (typeof tagValue != "string" || tagValue in oneOfMapping) throw new Error(`discriminator: "${tagName}" values must be unique strings`);
93
+ oneOfMapping[tagValue] = i;
94
+ }
95
+ }
96
+ }
97
+ };
98
+ }));
99
+ //#endregion
100
+ export default require_discriminator();
101
+ export { require_discriminator };
@@ -0,0 +1,14 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
3
+ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.DiscrError = void 0;
6
+ var DiscrError;
7
+ (function(DiscrError) {
8
+ DiscrError["Tag"] = "tag";
9
+ DiscrError["Mapping"] = "mapping";
10
+ })(DiscrError || (exports.DiscrError = DiscrError = {}));
11
+ }));
12
+ //#endregion
13
+ export default require_types();
14
+ export { require_types };
@@ -0,0 +1,35 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_core } from "./core/index.js";
3
+ import { require_validation } from "./validation/index.js";
4
+ import { require_applicator } from "./applicator/index.js";
5
+ import { require_dynamic } from "./dynamic/index.js";
6
+ import { require_next } from "./next.js";
7
+ import { require_unevaluated } from "./unevaluated/index.js";
8
+ import { require_format } from "./format/index.js";
9
+ import { require_metadata } from "./metadata.js";
10
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js
11
+ var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ const core_1 = require_core();
14
+ const validation_1 = require_validation();
15
+ const applicator_1 = require_applicator();
16
+ const dynamic_1 = require_dynamic();
17
+ const next_1 = require_next();
18
+ const unevaluated_1 = require_unevaluated();
19
+ const format_1 = require_format();
20
+ const metadata_1 = require_metadata();
21
+ exports.default = [
22
+ dynamic_1.default,
23
+ core_1.default,
24
+ validation_1.default,
25
+ (0, applicator_1.default)(true),
26
+ format_1.default,
27
+ metadata_1.metadataVocabulary,
28
+ metadata_1.contentVocabulary,
29
+ next_1.default,
30
+ unevaluated_1.default
31
+ ];
32
+ }));
33
+ //#endregion
34
+ export default require_draft2020();
35
+ export { require_draft2020 };
@@ -0,0 +1,46 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "../../compile/codegen/index.js";
3
+ import { require_names } from "../../compile/names.js";
4
+ import { require_compile } from "../../compile/index.js";
5
+ import { require_ref } from "../core/ref.js";
6
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
7
+ var require_dynamicAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.dynamicAnchor = void 0;
10
+ const codegen_1 = require_codegen();
11
+ const names_1 = require_names();
12
+ const compile_1 = require_compile();
13
+ const ref_1 = require_ref();
14
+ const def = {
15
+ keyword: "$dynamicAnchor",
16
+ schemaType: "string",
17
+ code: (cxt) => dynamicAnchor(cxt, cxt.schema)
18
+ };
19
+ function dynamicAnchor(cxt, anchor) {
20
+ const { gen, it } = cxt;
21
+ it.schemaEnv.root.dynamicAnchors[anchor] = true;
22
+ const v = (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`;
23
+ const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
24
+ gen.if((0, codegen_1._)`!${v}`, () => gen.assign(v, validate));
25
+ }
26
+ exports.dynamicAnchor = dynamicAnchor;
27
+ function _getValidate(cxt) {
28
+ const { schemaEnv, schema, self } = cxt.it;
29
+ const { root, baseId, localRefs, meta } = schemaEnv.root;
30
+ const { schemaId } = self.opts;
31
+ const sch = new compile_1.SchemaEnv({
32
+ schema,
33
+ schemaId,
34
+ root,
35
+ baseId,
36
+ localRefs,
37
+ meta
38
+ });
39
+ compile_1.compileSchema.call(self, sch);
40
+ return (0, ref_1.getValidate)(cxt, sch);
41
+ }
42
+ exports.default = def;
43
+ }));
44
+ //#endregion
45
+ export default require_dynamicAnchor();
46
+ export { require_dynamicAnchor };
@@ -0,0 +1,45 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "../../compile/codegen/index.js";
3
+ import { require_names } from "../../compile/names.js";
4
+ import { require_ref } from "../core/ref.js";
5
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
6
+ var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.dynamicRef = void 0;
9
+ const codegen_1 = require_codegen();
10
+ const names_1 = require_names();
11
+ const ref_1 = require_ref();
12
+ const def = {
13
+ keyword: "$dynamicRef",
14
+ schemaType: "string",
15
+ code: (cxt) => dynamicRef(cxt, cxt.schema)
16
+ };
17
+ function dynamicRef(cxt, ref) {
18
+ const { gen, keyword, it } = cxt;
19
+ if (ref[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`);
20
+ const anchor = ref.slice(1);
21
+ if (it.allErrors) _dynamicRef();
22
+ else {
23
+ const valid = gen.let("valid", false);
24
+ _dynamicRef(valid);
25
+ cxt.ok(valid);
26
+ }
27
+ function _dynamicRef(valid) {
28
+ if (it.schemaEnv.root.dynamicAnchors[anchor]) {
29
+ const v = gen.let("_v", (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`);
30
+ gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid));
31
+ } else _callRef(it.validateName, valid)();
32
+ }
33
+ function _callRef(validate, valid) {
34
+ return valid ? () => gen.block(() => {
35
+ (0, ref_1.callRef)(cxt, validate);
36
+ gen.let(valid, true);
37
+ }) : () => (0, ref_1.callRef)(cxt, validate);
38
+ }
39
+ }
40
+ exports.dynamicRef = dynamicRef;
41
+ exports.default = def;
42
+ }));
43
+ //#endregion
44
+ export default require_dynamicRef();
45
+ export { require_dynamicRef };
@@ -0,0 +1,22 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_dynamicAnchor } from "./dynamicAnchor.js";
3
+ import { require_dynamicRef } from "./dynamicRef.js";
4
+ import { require_recursiveAnchor } from "./recursiveAnchor.js";
5
+ import { require_recursiveRef } from "./recursiveRef.js";
6
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js
7
+ var require_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const dynamicAnchor_1 = require_dynamicAnchor();
10
+ const dynamicRef_1 = require_dynamicRef();
11
+ const recursiveAnchor_1 = require_recursiveAnchor();
12
+ const recursiveRef_1 = require_recursiveRef();
13
+ exports.default = [
14
+ dynamicAnchor_1.default,
15
+ dynamicRef_1.default,
16
+ recursiveAnchor_1.default,
17
+ recursiveRef_1.default
18
+ ];
19
+ }));
20
+ //#endregion
21
+ export default require_dynamic();
22
+ export { require_dynamic };
@@ -0,0 +1,20 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_util } from "../../compile/util.js";
3
+ import { require_dynamicAnchor } from "./dynamicAnchor.js";
4
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
5
+ var require_recursiveAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const dynamicAnchor_1 = require_dynamicAnchor();
8
+ const util_1 = require_util();
9
+ exports.default = {
10
+ keyword: "$recursiveAnchor",
11
+ schemaType: "boolean",
12
+ code(cxt) {
13
+ if (cxt.schema) (0, dynamicAnchor_1.dynamicAnchor)(cxt, "");
14
+ else (0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored");
15
+ }
16
+ };
17
+ }));
18
+ //#endregion
19
+ export default require_recursiveAnchor();
20
+ export { require_recursiveAnchor };
@@ -0,0 +1,15 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_dynamicRef } from "./dynamicRef.js";
3
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
4
+ var require_recursiveRef = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const dynamicRef_1 = require_dynamicRef();
7
+ exports.default = {
8
+ keyword: "$recursiveRef",
9
+ schemaType: "string",
10
+ code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema)
11
+ };
12
+ }));
13
+ //#endregion
14
+ export default require_recursiveRef();
15
+ export { require_recursiveRef };