Skip to content

refactor: init custom parser functionality - #489

Merged
asyncapi-bot merged 2 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/custom-parsers
Mar 11, 2022
Merged

asyncapi-bot merged 2 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/custom-parsers

Conversation

@magicmatatjahu

@magicmatatjahu magicmatatjahu commented Mar 10, 2022 •

Copy link
Copy Markdown
Member

Description

  • init custom parser functionality: registerSchemaParser etc.
  • init custom operations like applyTraits or parseSchemas.
  • without tests, I will add them soon.

Related issue(s)
Part of #481
Part of #482

@jonaslagoni jonaslagoni left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests? 😄

without tests, I will add them soon.

Ah 😆

import { xParserOriginalTraits } from '../constants';
import { mergePatch } from '../utils';

const v2TraitPaths = [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2 means v2 of the spec here? If so, shall we extract the paths to their own files so we can do the same for v3 spec ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will have only 2 custom operations and I don't think so that we should split them to separate files. We can do it later, if we will have more logic for each version.

@smoya smoya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@magicmatatjahu

Copy link
Copy Markdown
Member Author

/rtm

@asyncapi-bot
asyncapi-bot merged commit ddc0383 into asyncapi:next-major Mar 11, 2022
@magicmatatjahu
magicmatatjahu deleted the next/custom-parsers branch March 11, 2022 14:15
magicmatatjahu added a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants