2022-09-09 22:54:18 +03:00
|
|
|
version: "0.2"
|
|
|
|
language: en
|
|
|
|
allowCompoundWords: true
|
|
|
|
dictionaries:
|
|
|
|
- node
|
|
|
|
- typescript
|
|
|
|
words:
|
2024-08-13 01:10:25 +03:00
|
|
|
- Adoptium
|
2024-05-17 01:55:52 +03:00
|
|
|
- AQID
|
2024-03-18 19:23:00 +03:00
|
|
|
- atrule
|
2022-09-09 22:54:18 +03:00
|
|
|
- autorest
|
2024-01-30 22:17:38 +03:00
|
|
|
- azsdk
|
2022-09-09 22:54:18 +03:00
|
|
|
- azsdkengsys
|
|
|
|
- azurecr
|
2024-01-30 01:01:33 +03:00
|
|
|
- azuresdk
|
2024-07-11 00:44:45 +03:00
|
|
|
- bifilter
|
2022-09-09 22:54:18 +03:00
|
|
|
- blockful
|
|
|
|
- blockless
|
|
|
|
- cadl
|
2022-10-19 19:55:05 +03:00
|
|
|
- cadleditor
|
2022-10-25 01:30:51 +03:00
|
|
|
- cadleng
|
2024-02-09 03:54:23 +03:00
|
|
|
- cadlplayground
|
2023-11-17 19:04:18 +03:00
|
|
|
- clsx
|
2023-09-19 21:38:42 +03:00
|
|
|
- cobertura
|
2023-12-05 04:18:34 +03:00
|
|
|
- codeql
|
2022-09-09 22:54:18 +03:00
|
|
|
- Contoso
|
2024-02-09 03:54:23 +03:00
|
|
|
- CORGE
|
2023-01-03 19:34:50 +03:00
|
|
|
- createsorreplacesresource
|
|
|
|
- createsorupdatesresource
|
2022-09-09 22:54:18 +03:00
|
|
|
- CRUDL
|
2024-05-24 03:20:36 +03:00
|
|
|
- dbaeumer
|
2024-08-13 01:10:25 +03:00
|
|
|
- Dcodegen
|
2023-05-06 02:06:30 +03:00
|
|
|
- debouncer
|
2024-08-13 01:10:25 +03:00
|
|
|
- Dedupes
|
2024-07-11 00:44:45 +03:00
|
|
|
- destructures
|
2024-01-30 01:01:33 +03:00
|
|
|
- devdiv
|
2024-05-31 00:45:39 +03:00
|
|
|
- Diagnoser
|
2022-09-09 22:54:18 +03:00
|
|
|
- dogfood
|
2024-08-13 01:10:25 +03:00
|
|
|
- Dorg
|
|
|
|
- Dskip
|
2022-09-09 22:54:18 +03:00
|
|
|
- eastus
|
|
|
|
- ecmarkup
|
2024-05-24 03:20:36 +03:00
|
|
|
- esbenp
|
2022-09-09 22:54:18 +03:00
|
|
|
- esbuild
|
2024-04-04 00:04:47 +03:00
|
|
|
- espt
|
2024-02-15 22:24:06 +03:00
|
|
|
- ESRP
|
2023-01-03 19:34:50 +03:00
|
|
|
- fluentui
|
2024-02-09 03:54:23 +03:00
|
|
|
- genproto
|
2022-09-09 22:54:18 +03:00
|
|
|
- globby
|
2024-02-09 03:54:23 +03:00
|
|
|
- Infima
|
Fix bundling and inlining of referenced schemas (#3430)
Fixes #3369 by changing how types are bundled. In particular, when a
type is not a JSON Schema type, we never create a root schema for it.
Instead, it is inlined into the defs of any schema which references it,
and referenced using a JSON pointer. This PR makes bundling have
essentially no impact on emitted schemas, and is merely a way to bundle
them into a single file.
The approach is as follows:
* When a type references another type outside a JSON Schema namespace,
include the referenced type under $defs:
* Such referenced types do not have a $id or $schema field
* Such referenced types are referenced via JSON pointers not ids
* Bundling does not alter the bundled schemas or introduce new root
schemas. This changes two things from what we do today:
* The `$id` of the bundled schemas now includes the file path as it does
for non-bundled schemas (whereas before it was just the type name)
* non-JSON Schema types do not get $defs in the bundle, so the bundle
has the same root schemas as would be written to disk when not bundling.
In terms of implementation, the basic approach is to not handle bundling
via the emitter framework source files. Instead, we always create source
files for root schemas, and inline the necessary defs as we did before
(but now using JSON pointers). Then when we're about to write source
files, if we're bundling we assemble the bundle and emit that single
file, otherwise we emit each source file that contains a root schema.
Todo:
* [ ] Validate that the bundled schemas continue to work with ajv.
* [ ] Cleanups
---------
Co-authored-by: Vitalii Kryvenko <gersoh3@gmail.com>
2024-05-24 03:49:43 +03:00
|
|
|
- inlines
|
2022-09-09 22:54:18 +03:00
|
|
|
- inmemory
|
|
|
|
- instanceid
|
2023-04-25 19:23:51 +03:00
|
|
|
- interner
|
2022-09-09 22:54:18 +03:00
|
|
|
- intrinsics
|
2024-08-13 01:10:25 +03:00
|
|
|
- jdwp
|
2022-09-09 22:54:18 +03:00
|
|
|
- jsyaml
|
2023-04-25 19:23:51 +03:00
|
|
|
- keyer
|
2024-02-09 03:54:23 +03:00
|
|
|
- lifecyle
|
2024-05-17 01:55:52 +03:00
|
|
|
- LINUXNEXTVMIMAGE
|
2024-04-04 00:04:47 +03:00
|
|
|
- LINUXOS
|
|
|
|
- LINUXVMIMAGE
|
2022-10-19 19:55:05 +03:00
|
|
|
- lzutf
|
2024-04-04 00:04:47 +03:00
|
|
|
- MACVMIMAGE
|
2023-12-15 00:48:27 +03:00
|
|
|
- mocharc
|
2022-09-09 22:54:18 +03:00
|
|
|
- msbuild
|
|
|
|
- MSRC
|
2023-07-27 01:21:45 +03:00
|
|
|
- multis
|
2022-09-09 22:54:18 +03:00
|
|
|
- munge
|
|
|
|
- mylib
|
2024-02-09 03:54:23 +03:00
|
|
|
- nanos
|
2024-01-19 20:42:25 +03:00
|
|
|
- noformat
|
2023-12-05 20:30:13 +03:00
|
|
|
- noopener
|
|
|
|
- noreferrer
|
2022-09-09 22:54:18 +03:00
|
|
|
- nostdlib
|
2024-01-30 22:17:38 +03:00
|
|
|
- npmjs
|
2024-05-17 01:55:52 +03:00
|
|
|
- nupkg
|
2022-09-09 22:54:18 +03:00
|
|
|
- oapi
|
2024-02-06 01:38:55 +03:00
|
|
|
- OIDC
|
2024-03-08 20:41:55 +03:00
|
|
|
- oneds
|
2022-09-09 22:54:18 +03:00
|
|
|
- oneof
|
|
|
|
- onig
|
|
|
|
- onigasm
|
|
|
|
- onwarn
|
|
|
|
- openapi
|
|
|
|
- openapiv
|
2024-05-31 00:45:39 +03:00
|
|
|
- Perfolizer
|
2022-09-09 22:54:18 +03:00
|
|
|
- picocolors
|
2023-11-21 22:37:05 +03:00
|
|
|
- prismjs
|
2022-09-09 22:54:18 +03:00
|
|
|
- proto
|
|
|
|
- protobuf
|
|
|
|
- protoc
|
2024-04-04 00:04:47 +03:00
|
|
|
- psscriptanalyzer
|
2024-05-17 01:55:52 +03:00
|
|
|
- pwsh
|
2024-07-11 00:44:45 +03:00
|
|
|
- recase
|
2022-09-09 22:54:18 +03:00
|
|
|
- regen
|
2024-02-28 22:40:28 +03:00
|
|
|
- respecify
|
2022-09-09 22:54:18 +03:00
|
|
|
- rpaas
|
|
|
|
- rushx
|
|
|
|
- safeint
|
2023-01-03 19:34:50 +03:00
|
|
|
- segmentof
|
2023-04-25 19:23:51 +03:00
|
|
|
- sfixed
|
2023-04-28 19:32:54 +03:00
|
|
|
- sint
|
2023-07-27 01:21:45 +03:00
|
|
|
- ssvs
|
2022-09-09 22:54:18 +03:00
|
|
|
- strs
|
2024-01-30 01:01:33 +03:00
|
|
|
- syncpack
|
2024-05-17 01:55:52 +03:00
|
|
|
- TCGC
|
|
|
|
- triaging
|
2022-09-09 22:54:18 +03:00
|
|
|
- TRYIT
|
2024-05-17 01:55:52 +03:00
|
|
|
- tsdoc
|
2022-09-09 22:54:18 +03:00
|
|
|
- TSES
|
2023-08-02 01:34:18 +03:00
|
|
|
- tspd
|
2024-02-09 03:54:23 +03:00
|
|
|
- tspwebsitepr
|
2023-07-27 01:21:45 +03:00
|
|
|
- tsvs
|
2024-03-29 20:25:29 +03:00
|
|
|
- typespec
|
2024-01-30 22:17:38 +03:00
|
|
|
- typespecvs
|
2022-09-09 22:54:18 +03:00
|
|
|
- Uhoh
|
2024-02-09 03:54:23 +03:00
|
|
|
- uitestresults
|
2022-09-09 22:54:18 +03:00
|
|
|
- unassignable
|
|
|
|
- Uncapitalize
|
2024-05-17 01:55:52 +03:00
|
|
|
- uncollapsed
|
2024-08-13 01:10:25 +03:00
|
|
|
- undifferentiable
|
2022-09-09 22:54:18 +03:00
|
|
|
- uninstantiated
|
|
|
|
- unioned
|
2024-07-11 00:44:45 +03:00
|
|
|
- unparented
|
2023-05-06 02:06:30 +03:00
|
|
|
- unprefixed
|
2022-09-09 22:54:18 +03:00
|
|
|
- unprojected
|
2024-07-11 00:44:45 +03:00
|
|
|
- unrepresentable
|
2022-09-09 22:54:18 +03:00
|
|
|
- unsourced
|
|
|
|
- unversioned
|
2024-05-17 01:55:52 +03:00
|
|
|
- VITE
|
2024-05-21 20:49:46 +03:00
|
|
|
- vitest
|
2022-09-09 22:54:18 +03:00
|
|
|
- vsix
|
2024-01-30 22:17:38 +03:00
|
|
|
- VSSDK
|
2024-05-17 01:55:52 +03:00
|
|
|
- Vsts
|
2022-09-09 22:54:18 +03:00
|
|
|
- vswhere
|
2024-08-13 01:10:25 +03:00
|
|
|
- weidxu
|
2022-09-09 22:54:18 +03:00
|
|
|
- westus
|
2024-04-04 00:04:47 +03:00
|
|
|
- WINDOWSVMIMAGE
|
2024-08-13 01:10:25 +03:00
|
|
|
- xiaofei
|
2024-01-19 20:42:25 +03:00
|
|
|
- xlarge
|
2022-09-09 22:54:18 +03:00
|
|
|
- xplat
|
|
|
|
ignorePaths:
|
|
|
|
- "**/node_modules/**"
|
|
|
|
- "**/dist/**"
|
|
|
|
- "**/dist-dev/**"
|
2022-11-14 23:44:38 +03:00
|
|
|
- "**/.docusaurus/**"
|
2022-09-09 22:54:18 +03:00
|
|
|
- "**/CHANGELOG.md"
|
2024-01-02 22:40:29 +03:00
|
|
|
- "**/coverage/**"
|
2024-02-15 22:24:06 +03:00
|
|
|
- grammars/**
|
2023-01-03 19:34:50 +03:00
|
|
|
- packages/website/build/**
|
2022-10-19 19:55:05 +03:00
|
|
|
- common/scripts/*
|
2024-02-09 03:54:23 +03:00
|
|
|
- "**/ThirdPartyNotices.txt"
|
|
|
|
- packages/compiler/test/formatter/scenarios/**
|
|
|
|
- pnpm-lock.yaml
|
|
|
|
- "**/*.mp4"
|
2024-05-17 01:55:52 +03:00
|
|
|
- .git/**
|
|
|
|
- .gitignore
|
|
|
|
- .vscode/**
|
|
|
|
- .editorconfig
|
2024-05-08 00:02:14 +03:00
|
|
|
- .github/CODEOWNERS
|
2024-02-09 03:54:23 +03:00
|
|
|
- packages/samples/test/output/**
|
2024-06-18 02:56:45 +03:00
|
|
|
- "**/BenchmarkDotNet.Artifacts/**"
|
2024-07-26 00:27:15 +03:00
|
|
|
- "**/tspCodeModel.json"
|
2024-02-09 03:54:23 +03:00
|
|
|
useGitignore: true
|
2024-05-08 00:02:14 +03:00
|
|
|
enableGlobDot: true
|
2022-09-09 22:54:18 +03:00
|
|
|
enableFiletypes:
|
|
|
|
- cadl
|
|
|
|
patterns:
|
|
|
|
- name: cursortest
|
|
|
|
pattern: /(.*)┆(.*)/g
|
2022-09-15 19:45:28 +03:00
|
|
|
- name: Authorization_Basic
|
|
|
|
description: Ignore Base64 authorization tokens
|
2022-10-19 19:55:05 +03:00
|
|
|
pattern: "/Authorization: Basic\\s+\\S+/g"
|
2022-09-09 22:54:18 +03:00
|
|
|
ignoreRegExpList:
|
|
|
|
- cursortest
|
2022-09-15 19:45:28 +03:00
|
|
|
- Authorization_Basic
|