Swagger Editor Versions Save

Swagger Editor

v5.0.0-alpha.94

1 week ago

5.0.0-alpha.94 (2024-04-24)

Bug Fixes

  • content-read-only: priorize explicit prop over redux state (#4977) (91cc57c), closes #4976
  • editor-safe-render: fix list of safe components (#4979) (d299d75)

Features

v5.0.0-alpha.93

1 week ago

5.0.0-alpha.93 (2024-04-24)

Bug Fixes

  • monaco-editor: avoid rendering Monaco Editor multiple times (#4971) (47f9798), closes #4970

v5.0.0-alpha.92

1 month ago

5.0.0-alpha.92 (2024-03-29)

Features

  • editor-preview-asyncapi: add initial support for AsyncAPI 3.0.0 (#4886) (1626243), closes #4872
  • top-bar: add support for loading AsyncAPI Petstore 3.0.0 example (#4888) (a81bebf), closes #4873
  • top-bar: add support for loading AsyncAPI Streetlights 3.0.0 example (#4887) (902f580), closes #4874

v5.0.0-alpha.91

1 month ago

5.0.0-alpha.91 (2024-03-29)

Breaking changes

AsyncAPI preview plugin

AsyncAPI preview plugin now uses @asyncapi/parser v3 instead of v1. The way, how we pass options to the AsyncAPI parser changed.

editorPreviewAsyncAPI.actions.parse FSA creator now accepts options objects in a shape of { parserOptions, parseOptions } as a second argument. parserOptions are passed to the parser constructor during the parser creation and parseOptions are passed to parse function during the parsing.

Here is an example how to override how AsyncAPI parser resolves HTTP(S) URLs:

const AsyncAPIParseOptionsPlugin = () => ({
  statePlugins: {
    editorPreviewAsyncAPI: {
      wrapActions: {
        parse:
          (oriAction) =>
          (content, options = {}) => {
            const httpsFetchResolver = {
              schema: 'https',
              canRead: true,
              async read(uri) {
                const response = await fetch(uri.toString());
                return response.text();
              },
            };
            const httpFetchResolver = {
              schema: 'http',
              canRead: true,
              async read(uri) {
                const response = await fetch(uri.toString());
                return response.text();
              },
            };

            const parserOptions = {
              ...options.parserOptions,
              __unstable: {
                resolver: {
                  resolvers: [httpsFetchResolver, httpFetchResolver],
                },
              },
            };
            const parseOptions = options.parseOptions ?? {};

            return oriAction(content, { parserOptions, parseOptions });
          },
      },
    },
  },
});

Webpack configuration changes

[!IMPORTANT]
Instructions for building SwaggerEditor@5 with webpack@5 have changed.

Handling process with imports-loader it no longer necessary.

To avoid runtime errors, alias for @stoplight/ordered-object-literal needs to introduced. Please consult the amended Usage section of the main README file for more details.

Features

Performance Improvements

  • language-apidom: fix perf regression in reference validation (#4885) (99af87f)

v5.0.0-alpha.90

1 month ago

5.0.0-alpha.90 (2024-03-26)

Features

[!IMPORTANT]
Instructions for building SwaggerEditor@5 with webpack@5 changed. Before, process injection was handled by webpack.ProvidePlugin . Now it's handled by imports-loader. Please consult the amended Usage section of the main README file for more details. You can find the reasoning for the change in https://github.com/swagger-api/swagger-editor/issues/4848.

v5.0.0-alpha.89

1 month ago

5.0.0-alpha.89 (2024-03-25)

Bug Fixes

Performance Improvements

  • language-apidom: improve performance of reference validation (#4849) (1ef9b96), closes #4828

v5.0.0-alpha.88

2 months ago

5.0.0-alpha.88 (2024-02-05)

Bug Fixes

  • monaco-language-apidom: provide fixes for AsyncAPI 2.x linting (#4793) (0f44a5b)

v5.0.0-alpha.87

3 months ago

5.0.0-alpha.87 (2024-01-23)

Bug Fixes

  • content-fixtures: update to conform with OpenAPI 3.0.3 spec (#4728) (24b1c84), closes #4637
  • editor-content-fixtures: fix typo in OpenAPI 2.0 (#4708) (fca1f8b), closes #4684

Features

  • add complete editing experience for OpenAPI 2.0 (#4777) (b0c603b)

v4.12.1

3 months ago

4.12.1 (2024-01-16)

Bug Fixes

v4.12.0

3 months ago

4.12.0 (2024-01-16)

Bug Fixes

  • fix typo in Petstore OpenAPI 2.0 (#4684) (d417e31)
  • fixtures: update fixtures to conform with OpenAPI 3.0.3 spec (#4637) (8d82288)
  • json-schema-validator: propertly handle unknown definition (#4745) (afd8610), closes #4697

Features


[!IMPORTANT] For those looking to integrate SwaggerEditor@4 with older versions of React, we have provided a recipe to assist you in this process. Please refer to the Using older version of React section of the main README for detailed instructions and tips to ensure a smooth integration.
This recipe is tailored to help you navigate any compatibility issues and make the most out of SwaggerEditor@4 with earlier React versions. We encourage you to explore this recipe and reach out to us if you need further assistance.