Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V15 #1

Open
wants to merge 132 commits into
base: master
Choose a base branch
from
Open

V15 #1

wants to merge 132 commits into from

Commits on May 15, 2022

  1. upgrade json-schema-ref-parser -> 9.0.9

    Boris Cherny committed May 15, 2022
    Configuration menu
    Copy the full SHA
    f943f32 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fbcbc8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request bcherny#447 from bcherny/perf/optimize-optimizer

    Optimize optimizer to avoid deep JSON serialization (fix bcherny#422)
    bcherny authored May 15, 2022
    Configuration menu
    Copy the full SHA
    ed417b0 View commit details
    Browse the repository at this point in the history
  4. upgrade deps

    Boris Cherny committed May 15, 2022
    Configuration menu
    Copy the full SHA
    8b3267f View commit details
    Browse the repository at this point in the history
  5. Add additionalProperties option (fix bcherny#335)

    Boris Cherny committed May 15, 2022
    Configuration menu
    Copy the full SHA
    59747b1 View commit details
    Browse the repository at this point in the history
  6. drop support for node v10

    Boris Cherny committed May 15, 2022
    Configuration menu
    Copy the full SHA
    966cca5 View commit details
    Browse the repository at this point in the history
  7. Merge pull request bcherny#448 from bcherny/drop-node-10

    drop support for node v10
    bcherny authored May 15, 2022
    Configuration menu
    Copy the full SHA
    603773f View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. cleanup: kill mapDeep

    Boris Cherny committed May 16, 2022
    Configuration menu
    Copy the full SHA
    4837ef2 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2022

  1. Add reasonable max for tuple types (fix bcherny#438)

    Boris Cherny committed May 22, 2022
    Configuration menu
    Copy the full SHA
    a89ffe1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request bcherny#451 from bcherny/438

    Add reasonable max for tuple types (fix bcherny#438)
    bcherny authored May 22, 2022
    Configuration menu
    Copy the full SHA
    a7d14c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b78a616 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7aa353d View commit details
    Browse the repository at this point in the history
  5. Merge pull request bcherny#452 from bcherny/436

    Bugfix: Add support for $id in sub-schemas
    bcherny authored May 22, 2022
    Configuration menu
    Copy the full SHA
    e65ad1f View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Bump .nvmrc

    queengooborg authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    82fa551 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

  1. Merge pull request bcherny#455 from queengooborg/patch-1

    Bump .nvmrc
    bcherny authored Jun 11, 2022
    Configuration menu
    Copy the full SHA
    9212a77 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. sort paths returned by getPaths

    hopefully ensures a stable order for testing snapshots across
    different systems.
    Karel-Kroeze authored and s-weigand committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    d8592cd View commit details
    Browse the repository at this point in the history
  2. 🧹 Updated snapshots with new file order

    This will reduce the diff when comparing actual changes (done on linux)
    s-weigand committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    8bdef9a View commit details
    Browse the repository at this point in the history
  3. use double quotes for glob patterns

    avoids early expansion and false negative test runs on some platforms,
    mostly mine.
    Karel-Kroeze authored and s-weigand committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    d348981 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8fa728e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Merge pull request bcherny#464 from s-weigand/cross-platform-tests-re…

    …based
    
    🧪 Cross platform tests (follow up)
    bcherny authored Jun 27, 2022
    Configuration menu
    Copy the full SHA
    0df0664 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Configuration menu
    Copy the full SHA
    224a352 View commit details
    Browse the repository at this point in the history
  2. cleanup: kill vestigial verbose flag for ava

    Boris Cherny committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    e82df8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a92d7c9 View commit details
    Browse the repository at this point in the history
  4. Fix cycles during generating (fix bcherny#376, fix bcherny#323)

    Boris Cherny committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    2ca6e50 View commit details
    Browse the repository at this point in the history
  5. Merge pull request bcherny#453 from bcherny/376

    Fix cycles during emission (fix bcherny#376, fix bcherny#323)
    bcherny authored Jun 29, 2022
    Configuration menu
    Copy the full SHA
    c6676b6 View commit details
    Browse the repository at this point in the history
  6. 11.0.0

    Boris Cherny committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    65a8239 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. fix broken dependency (fix bcherny#465)

    Boris Cherny committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    2b70bc3 View commit details
    Browse the repository at this point in the history
  2. 11.0.1

    Boris Cherny committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    ab60479 View commit details
    Browse the repository at this point in the history
  3. fix commit sha for json-schema-ref-parser dep

    Boris Cherny committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    b2027df View commit details
    Browse the repository at this point in the history
  4. Update README.md

    bcherny authored Jul 1, 2022
    Configuration menu
    Copy the full SHA
    efc311a View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. Use forked json-schema-ref-parser (fix bcherny#469)

    Boris Cherny committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    84c9db1 View commit details
    Browse the repository at this point in the history
  2. un-ignore realWorld.fhir test

    Boris Cherny committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    8c1860c View commit details
    Browse the repository at this point in the history
  3. 11.0.2

    Boris Cherny committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    c7590c5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    97e562f View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2022

  1. Merge pull request bcherny#474 from JoshuaKGoldberg/eslint-not-tslint

    fix: replace TSLint disables with ESLint
    bcherny authored Aug 7, 2022
    Configuration menu
    Copy the full SHA
    1a45ce3 View commit details
    Browse the repository at this point in the history
  2. add test for bcherny#135

    Boris Cherny committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    dc0f63f View commit details
    Browse the repository at this point in the history
  3. cleanup: use defs internally, not definitions

    Boris Cherny committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    34de194 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. [Chore] Prepare for yarn3

    Boris Cherny committed Aug 13, 2022
    Configuration menu
    Copy the full SHA
    2083db1 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. Configuration menu
    Copy the full SHA
    864e1cb View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. Configuration menu
    Copy the full SHA
    69a393a View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Fixed eslint extension setting

    tlahav committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    9a8925d View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. Add MIT License

    This looks like an amazing project, but a license is required in order for us to use it. Would you mind adding an explicit MIT license?
    
    Thanks!
    YairHalberstadt authored Nov 16, 2022
    Configuration menu
    Copy the full SHA
    94bd13a View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. fix type error in normalizer

    bcherny committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    7e6c2b4 View commit details
    Browse the repository at this point in the history
  2. fix readme build badge

    bcherny committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    f87aad4 View commit details
    Browse the repository at this point in the history
  3. switch back to standard json-schema-ref-parser release, now that json…

    …-schema-ref-parser/pull/281 was merged
    bcherny committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    137f6a7 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2023

  1. add never schema type

    notaphplover committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    f8982cc View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Configuration menu
    Copy the full SHA
    4b01877 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2023

  1. Merge pull request bcherny#495 from YairHalberstadt/patch-1

    Add MIT License
    bcherny authored Feb 19, 2023
    Configuration menu
    Copy the full SHA
    1385ef5 View commit details
    Browse the repository at this point in the history
  2. rename LICENSE -> LICENSE.md

    Boris Cherny committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    7583a25 View commit details
    Browse the repository at this point in the history
  3. Merge pull request bcherny#493 from tlahav/fix-eslint-settings

    Fixed eslint extension setting
    bcherny authored Feb 19, 2023
    Configuration menu
    Copy the full SHA
    351ee06 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb15918 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8842142 View commit details
    Browse the repository at this point in the history
  6. 11.0.4

    Boris Cherny committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    8ca8217 View commit details
    Browse the repository at this point in the history
  7. rm extra logging

    Boris Cherny committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    810ef47 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. Merge branch 'master' of https://github.com/bcherny/json-schema-to-ty…

    …pescript into fix/parse-enum-values-as-literals
    notaphplover committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    5a9a5bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cea04ae View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. Configuration menu
    Copy the full SHA
    e653ab3 View commit details
    Browse the repository at this point in the history
  2. 11.0.5

    Boris Cherny committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    de9b027 View commit details
    Browse the repository at this point in the history
  3. Merge pull request bcherny#509 from notaphplover/fix/parse-enum-value…

    …s-as-literals
    
    Update parser to parse enum values as literals
    bcherny authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    b73e1c7 View commit details
    Browse the repository at this point in the history
  4. 12.0.0

    Boris Cherny committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    6e3fbca View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d81f3dc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c4b7639 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e291034 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Configuration menu
    Copy the full SHA
    e977383 View commit details
    Browse the repository at this point in the history
  2. style: apply suggestion

    notaphplover committed May 2, 2023
    Configuration menu
    Copy the full SHA
    b1f9f3a View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. Merge pull request bcherny#515 from notaphplover/fix/boolean-json-sch…

    …emas
    
    Fix boolean json schemas
    bcherny authored May 4, 2023
    Configuration menu
    Copy the full SHA
    05b0103 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    413517d View commit details
    Browse the repository at this point in the history
  3. Merge pull request bcherny#423 from mrcljx/mrcljx/fix-strict-index-si…

    …gnatures-standalone
    
    Fix strictIndexSignature with standalone types
    bcherny authored May 4, 2023
    Configuration menu
    Copy the full SHA
    8f973d1 View commit details
    Browse the repository at this point in the history
  4. fix tests

    bcherny committed May 4, 2023
    Configuration menu
    Copy the full SHA
    4d0176f View commit details
    Browse the repository at this point in the history
  5. 13.0.0

    bcherny committed May 4, 2023
    Configuration menu
    Copy the full SHA
    20c7f1f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dc366e6 View commit details
    Browse the repository at this point in the history
  7. 13.0.1

    bcherny committed May 4, 2023
    Configuration menu
    Copy the full SHA
    33aa09d View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2023

  1. Configuration menu
    Copy the full SHA
    c04143c View commit details
    Browse the repository at this point in the history
  2. v13.0.2

    Boris Cherny committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    f43ab4c View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2023

  1. Add support for deprecated keyword (Fixes bcherny#441) (bcherny#542)

    * Initial support for deprecated keyword
    
    * Remove unnecessary ?
    
    * Fix missing deprecated parameter
    
    * Add e2e test for keyword deprecated
    
    * extended e2e tet to cover deprecated schema and deprecated:false
    
    * Added description property to each item in e2e test to test interaction with the deprecated comment
    
    * Added description property to another object with a true deprecated in e2e test to test outcome of a true deprecated between a true deprecated and a false deprecated
    
    * Fix whitespace and improve comments
    
    * Simplify generateComment
    
    ---------
    
    Co-authored-by: iansw246 <35947093+iansw246@users.noreply.github.com>
    Co-authored-by: Michelle Tan <michelle0223@gmail.com>
    3 people authored Aug 27, 2023
    Configuration menu
    Copy the full SHA
    f797848 View commit details
    Browse the repository at this point in the history
  2. cleanup

    bcherny committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    c826963 View commit details
    Browse the repository at this point in the history
  3. add format command

    bcherny committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    a104878 View commit details
    Browse the repository at this point in the history
  4. autoformat everything

    bcherny committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    aebe91e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe580b6 View commit details
    Browse the repository at this point in the history
  6. only format src/ and test/

    bcherny committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    34cb853 View commit details
    Browse the repository at this point in the history
  7. 13.1.0

    bcherny committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    699eda8 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Fix crash when a field has 'deprecated', but not 'description' (bcher…

    …ny#549)
    
    * Add failing test case
    
    * Fix crash when deprecated is defined without description
    
    * Add test case for bcherny#540 too
    danmichaelo authored Aug 29, 2023
    Configuration menu
    Copy the full SHA
    2887a52 View commit details
    Browse the repository at this point in the history
  2. 13.1.1

    bcherny committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3bb5d2b View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. rm yarn.lock (fix bcherny#569)

    bcherny committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    bf63b97 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    569f492 View commit details
    Browse the repository at this point in the history
  3. v13.1.2

    bcherny committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    6adcad9 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Require Node v16+

    bcherny committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    7321597 View commit details
    Browse the repository at this point in the history
  2. Target ES6

    bcherny committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    5369633 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Configuration menu
    Copy the full SHA
    d92b06e View commit details
    Browse the repository at this point in the history
  2. [Chore] Update dependencies

    bcherny committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    4f47952 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c9ecd7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9cbe26e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e39ed18 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    11879fa View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. feat: support customName options (bcherny#585)

    * feat: support `customName` options
    
    * feat: support nullish name for `customName`
    antfu authored Apr 21, 2024
    Configuration menu
    Copy the full SHA
    2f29f19 View commit details
    Browse the repository at this point in the history
  2. [Chore] Downgrade ESLint -> 8.56.0

    Doing this to avoid warnings when running `npm i`, since @typescript-eslint still requires 8.56.
    Boris Cherny committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    5f3039a View commit details
    Browse the repository at this point in the history
  3. [Docs] Document customName option in readme

    Boris Cherny committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    f97ec06 View commit details
    Browse the repository at this point in the history
  4. 14.0.1

    Boris Cherny committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    d97768e View commit details
    Browse the repository at this point in the history
  5. feat: [577] Add yml support (bcherny#588)

    * feat: [577] Add yml support
    
    * Update README.md
    
    Co-authored-by: Boris Cherny <boris@performancejs.com>
    
    * feat: [577] Add yml support
    
    * feat: [577] Rebase - master
    
    ---------
    
    Co-authored-by: Boris Cherny <boris@performancejs.com>
    alexanderkrum and bcherny authored Apr 21, 2024
    Configuration menu
    Copy the full SHA
    9ec0c70 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. [Chore] Drop @types/prettier dependency. (bcherny#594)

    It is now deprecated as the types are now part of the prettier lib.
    
    Fixes bcherny#593
    
    Co-authored-by: Pascal Corpet <lascap@lascap-mac.lan>
    pcorpet and Pascal Corpet authored Apr 23, 2024
    Configuration menu
    Copy the full SHA
    13806bd View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    872a057 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e53bb80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    add8ee1 View commit details
    Browse the repository at this point in the history
  4. [CI] Add package-lock.json

    bcherny committed May 2, 2024
    Configuration menu
    Copy the full SHA
    2b61748 View commit details
    Browse the repository at this point in the history
  5. v14.0.2

    bcherny committed May 2, 2024
    Configuration menu
    Copy the full SHA
    39dd574 View commit details
    Browse the repository at this point in the history
  6. v14.0.3

    bcherny committed May 2, 2024
    Configuration menu
    Copy the full SHA
    107c338 View commit details
    Browse the repository at this point in the history
  7. [Docs] Clean up readme

    bcherny committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c9680db View commit details
    Browse the repository at this point in the history
  8. v14.0.4

    bcherny committed May 2, 2024
    Configuration menu
    Copy the full SHA
    e8291d7 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Improve CLI docs

    bcherny authored May 5, 2024
    Configuration menu
    Copy the full SHA
    6c69141 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. Configuration menu
    Copy the full SHA
    49fb14d View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. Update README.md: fix definition of customName (bcherny#596)

    Added escape chars to avoid the `|` in type definition being interpreted as cell separator
    archiloque authored Jun 2, 2024
    Configuration menu
    Copy the full SHA
    5d24faa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7fee29 View commit details
    Browse the repository at this point in the history
  3. v14.0.5

    bcherny committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    89a7b32 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. [Chore] rm .yarn

    bcherny committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    fcb6f73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31993de View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. [chore] Clean up types

    bcherny committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    74d6126 View commit details
    Browse the repository at this point in the history
  2. Add option to generate TS string enums (bcherny#578)

    * Add option to generate TS string enums
    
    * Added e2e test for --inferStringEnumKeysFromValues
    codan84 authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    3e2e1e9 View commit details
    Browse the repository at this point in the history
  3. v14.1.0

    bcherny committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6fc74b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    e0a822f View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Intersection schema generation is order-dependent (bcherny#603)

    * Add new test cases.
    
    * Intersection schema generation is order-dependent
    
    - Given a schema that contains a named definition (`B`),
    - And that named definition is referenced in multiple locations,
    - And that named schema is also an intersection type (`allOf` in this
      example),
    
    Then when parsed, the generated TypeScript will contain the correct
    reference only for the _first_ location in which the named schema is
    encountered, during a depth-first traversal.
    
    Subsequent references to the same schema will be generated as though
    they were only the intersection type, and not the named schema.
    
    Example
    
    Given the following schema:
    
    ```yaml
    $id: Intersection
    type: object
    oneOf:
      - $ref: '#/definitions/A'
      - $ref: '#/definitions/B'
    
    definitions:
      A:
        type: object
        additionalProperties: false
        allOf: [$ref: '#/definitions/Base']
        properties:
          b: {$ref: '#/definitions/B'}
      B:
        type: object
        additionalProperties: false,
        allOf: [$ref: '#/definitions/Base']
        properties:
          x: {type: string}
      Base:
        type: object
        additionalProperties: false,
        properties:
          y: {type: string}
    ```
    
    The current resulting TypeScript will be (comments adjusted
    for clarity):
    
    ```ts
    // Incorrect: should be `type Intersection = A | B`
    // Note that the B type at this location is the _second_ reference to
    // B during a depth-first traversal.
    export type Intersection = A | B1;
    export type A = A1 & {
      b?: B;
    };
    export type A1 = Base;
    export type B = B1 & {
      x?: string;
    };
    export type B1 = Base;
    
    export interface Base {
      y?: string;
    }
    ```
    
    Root Cause
    
    In `parser.ts`, [lines 57 - 75][1], when schema that matches multiple
    "types" is encountered, the parser generates a new `ALL_OF` intersection
    schema to contain each sub-type, then adds each sub-type to the new
    `ALL_OF` schema.
    
    Each sub-type is then parsed sequentially. During this process,
    `maybeStripNameHints` is called, which mutates the schema by removing
    the `$id`, `description`, and `name` properties.
    
    Notably, these properties are used by `typesOfSchema` to detect the
    `NAMED_SCHEMA` type. As a result, this schema object will never again be
    detected as a `NAMED_SCHEMA` type.
    
    Therefore, the _first_ instance of the schema object is correctly
    handled as an intersection schema **and** a named schema, but all
    subsequent instances are treated as though they are **only** an
    intersection schema.
    
    Proposed Solution
    
    - The call to `typesOfSchema` is moved from `parser.ts` to
      `normalizer.ts`, with the goal of avoiding confusion due to a mutated
      schema object. The resulting list of schema types is persisted on the
      schema using a newly-introduced `Types` symbol.
    
    - The generated intersection schema is _also_ moved from `parser.ts` to
      `normalizer.ts`. This is because it is advantageous to let the
      generated intersection schema participate in the caching mechanism
      (which it could not previously do, since it was generated dynamically
      during each encounter). Without this, multiple instances of the same
      schema are generated.
    
    Related Issues
    
    - bcherny#597
    
    [1]: https://github.com/bcherny/json-schema-to-typescript/blob/31993def993b610ba238d3024260129e31ddc371/src/parser.ts#L57-L75 'parser.ts, lines 57 - 75'
    
    * Additionally hoist `allOf` behavior.
    
    * Traverse the generated intersection schema.
    altearius authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    62cc052 View commit details
    Browse the repository at this point in the history
  2. v15.0.0

    bcherny committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    402e188 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. add test case for bcherny#613

    bcherny committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    7c6bad4 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. Configuration menu
    Copy the full SHA
    17dc5ed View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. fix build (bcherny#621)

    benmccann authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    cb99ce4 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    c09dbcd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a1d22d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    108f144 View commit details
    Browse the repository at this point in the history
  4. 15.0.1

    bcherny committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    23ce160 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    0f5eacc View commit details
    Browse the repository at this point in the history
  2. v15.0.2

    bcherny committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    118d6a8 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Update to v15

    incompl committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    f1084ca View commit details
    Browse the repository at this point in the history
  2. wi

    incompl committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    046a3dc View commit details
    Browse the repository at this point in the history