feat: Добавлен скрипт генерации схем из предустановленной директории#254
Open
evgeniysemin wants to merge 1 commit into
Open
feat: Добавлен скрипт генерации схем из предустановленной директории#254evgeniysemin wants to merge 1 commit into
evgeniysemin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Для генерации необходимо положить валидные схемы в корень Scenario в папку
schemas, и запустить командуnpm run generate-scheme.На данный момент с пакетом есть проблема в неработающем prettier-правиле
printWidth. Кроме этого, для генерации схемы из CLI (как сейчас), во входном файле (schemas/SystemMessage/system_message.json) рефы должны ссылаться сразу на файл от корня схемы (отschemas). Например,"$ref": "Common/app_info.json"вместо"$ref": "../Common/app_info.json"(возможно это такой баг пакетаjson-schema-to-typescript, или баг пакетаjson-schema-ref-parser, который используется для парсинга рефов).📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @salutejs/recognizer-smartapp-brain@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 npm install @salutejs/recognizer-string-similarity@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 npm install @salutejs/scenario@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 npm install @salutejs/storage-adapter-firebase@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 npm install @salutejs/storage-adapter-memory@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 # or yarn add @salutejs/recognizer-smartapp-brain@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 yarn add @salutejs/recognizer-string-similarity@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 yarn add @salutejs/scenario@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 yarn add @salutejs/storage-adapter-firebase@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0 yarn add @salutejs/storage-adapter-memory@0.21.0-canary.254.6d705d3146d91c408819e8a3d4167b9e3c3c8e8e.0