├── .editorconfig ├── .github ├── dependabot.yml └── workflows │ ├── .releaserc │ ├── add-good-first-issue-labels.yml │ ├── automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml │ ├── automerge-for-humans-merging.yml │ ├── automerge-for-humans-remove-ready-to-merge-label-on-edit.yml │ ├── automerge-orphans.yml │ ├── automerge.yml │ ├── autoupdate.yml │ ├── bounty-program-commands.yml │ ├── help-command.yml │ ├── if-go-pr-testing.yml │ ├── issues-prs-notifications.yml │ ├── lint-pr-title.yml │ ├── notify-tsc-members-mention.yml │ ├── please-take-a-look-command.yml │ ├── release-announcements.yml │ ├── release.yml │ ├── scripts │ ├── README.md │ └── mailchimp │ │ ├── htmlContent.js │ │ ├── index.js │ │ ├── package-lock.json │ │ └── package.json │ ├── stale-issues-prs.yml │ ├── transfer-issue.yml │ ├── update-maintainers-trigger.yaml │ ├── update-pr.yml │ └── welcome-first-time-contrib.yml ├── .gitignore ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── cmd └── api-parser │ └── main.go ├── go.mod ├── go.sum ├── internal └── cli │ └── cli.go └── pkg ├── decode ├── decode.go └── decode_test.go ├── error ├── error.go └── error_test.go ├── jsonpath ├── loader.go ├── loader_test.go ├── reference.go ├── reference_test.go └── testdata │ └── sample.json ├── parser ├── parser.go ├── parser_test.go ├── testdata │ └── oneof.json └── v2 │ ├── hlsp.go │ ├── hlsp_test.go │ └── testdata │ ├── input │ ├── anyof.json │ ├── invalid-ref.json │ ├── loop1.json │ ├── loop2.json │ ├── recref0.json │ └── recref1.json │ └── output │ ├── anyof.json │ └── recref.json └── schema ├── asyncapi └── v2 │ ├── message_processor.go │ ├── message_processor_test.go │ ├── schema_parser.go │ ├── schema_parser_test.go │ └── testdata │ ├── expected │ ├── expected_anyOf_messages.json │ └── expected_oneOf_messages.json │ └── given │ ├── anyOf_channel.json │ ├── anyofdoc.json │ └── oneOf_channel.json ├── jsonschema └── draft07 │ ├── jsonschema_test.go │ ├── jsonschma.go │ └── schema.go ├── openapi └── v2 │ ├── openapi.go │ ├── openapi_test.go │ ├── schema.go │ └── testdata │ ├── expected │ ├── msg1.json │ ├── parse_without_examples.json │ ├── with_nullable_and_without_type.json │ └── without_nullable_and_without_type.json │ └── given │ ├── msg1.json │ ├── parse_without_examples.json │ ├── with_nullable_and_without_type.json │ └── without_nullable_and_without_type.json └── parser.go /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/.releaserc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/.releaserc -------------------------------------------------------------------------------- /.github/workflows/add-good-first-issue-labels.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/add-good-first-issue-labels.yml -------------------------------------------------------------------------------- /.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml -------------------------------------------------------------------------------- /.github/workflows/automerge-for-humans-merging.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/automerge-for-humans-merging.yml -------------------------------------------------------------------------------- /.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml -------------------------------------------------------------------------------- /.github/workflows/automerge-orphans.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/automerge-orphans.yml -------------------------------------------------------------------------------- /.github/workflows/automerge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/automerge.yml -------------------------------------------------------------------------------- /.github/workflows/autoupdate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/autoupdate.yml -------------------------------------------------------------------------------- /.github/workflows/bounty-program-commands.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/bounty-program-commands.yml -------------------------------------------------------------------------------- /.github/workflows/help-command.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/help-command.yml -------------------------------------------------------------------------------- /.github/workflows/if-go-pr-testing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/if-go-pr-testing.yml -------------------------------------------------------------------------------- /.github/workflows/issues-prs-notifications.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/issues-prs-notifications.yml -------------------------------------------------------------------------------- /.github/workflows/lint-pr-title.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/lint-pr-title.yml -------------------------------------------------------------------------------- /.github/workflows/notify-tsc-members-mention.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/notify-tsc-members-mention.yml -------------------------------------------------------------------------------- /.github/workflows/please-take-a-look-command.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/please-take-a-look-command.yml -------------------------------------------------------------------------------- /.github/workflows/release-announcements.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/release-announcements.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/scripts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/scripts/README.md -------------------------------------------------------------------------------- /.github/workflows/scripts/mailchimp/htmlContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/scripts/mailchimp/htmlContent.js -------------------------------------------------------------------------------- /.github/workflows/scripts/mailchimp/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/scripts/mailchimp/index.js -------------------------------------------------------------------------------- /.github/workflows/scripts/mailchimp/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/scripts/mailchimp/package-lock.json -------------------------------------------------------------------------------- /.github/workflows/scripts/mailchimp/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/scripts/mailchimp/package.json -------------------------------------------------------------------------------- /.github/workflows/stale-issues-prs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/stale-issues-prs.yml -------------------------------------------------------------------------------- /.github/workflows/transfer-issue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/transfer-issue.yml -------------------------------------------------------------------------------- /.github/workflows/update-maintainers-trigger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/update-maintainers-trigger.yaml -------------------------------------------------------------------------------- /.github/workflows/update-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/update-pr.yml -------------------------------------------------------------------------------- /.github/workflows/welcome-first-time-contrib.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.github/workflows/welcome-first-time-contrib.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/.gitignore -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/README.md -------------------------------------------------------------------------------- /cmd/api-parser/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/cmd/api-parser/main.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/go.sum -------------------------------------------------------------------------------- /internal/cli/cli.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/internal/cli/cli.go -------------------------------------------------------------------------------- /pkg/decode/decode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/decode/decode.go -------------------------------------------------------------------------------- /pkg/decode/decode_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/decode/decode_test.go -------------------------------------------------------------------------------- /pkg/error/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/error/error.go -------------------------------------------------------------------------------- /pkg/error/error_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/error/error_test.go -------------------------------------------------------------------------------- /pkg/jsonpath/loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/jsonpath/loader.go -------------------------------------------------------------------------------- /pkg/jsonpath/loader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/jsonpath/loader_test.go -------------------------------------------------------------------------------- /pkg/jsonpath/reference.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/jsonpath/reference.go -------------------------------------------------------------------------------- /pkg/jsonpath/reference_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/jsonpath/reference_test.go -------------------------------------------------------------------------------- /pkg/jsonpath/testdata/sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": "me" 3 | } -------------------------------------------------------------------------------- /pkg/parser/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/parser.go -------------------------------------------------------------------------------- /pkg/parser/parser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/parser_test.go -------------------------------------------------------------------------------- /pkg/parser/testdata/oneof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/testdata/oneof.json -------------------------------------------------------------------------------- /pkg/parser/v2/hlsp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/hlsp.go -------------------------------------------------------------------------------- /pkg/parser/v2/hlsp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/hlsp_test.go -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/anyof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/anyof.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/invalid-ref.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/invalid-ref.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/loop1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/loop1.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/loop2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/loop2.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/recref0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/recref0.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/input/recref1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/input/recref1.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/output/anyof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/output/anyof.json -------------------------------------------------------------------------------- /pkg/parser/v2/testdata/output/recref.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/parser/v2/testdata/output/recref.json -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/message_processor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/message_processor.go -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/message_processor_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/message_processor_test.go -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/schema_parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/schema_parser.go -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/schema_parser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/schema_parser_test.go -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/testdata/expected/expected_anyOf_messages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/testdata/expected/expected_anyOf_messages.json -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/testdata/expected/expected_oneOf_messages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/testdata/expected/expected_oneOf_messages.json -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/testdata/given/anyOf_channel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/testdata/given/anyOf_channel.json -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/testdata/given/anyofdoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/testdata/given/anyofdoc.json -------------------------------------------------------------------------------- /pkg/schema/asyncapi/v2/testdata/given/oneOf_channel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/asyncapi/v2/testdata/given/oneOf_channel.json -------------------------------------------------------------------------------- /pkg/schema/jsonschema/draft07/jsonschema_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/jsonschema/draft07/jsonschema_test.go -------------------------------------------------------------------------------- /pkg/schema/jsonschema/draft07/jsonschma.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/jsonschema/draft07/jsonschma.go -------------------------------------------------------------------------------- /pkg/schema/jsonschema/draft07/schema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/jsonschema/draft07/schema.go -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/openapi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/openapi.go -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/openapi_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/openapi_test.go -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/schema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/schema.go -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/expected/msg1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/expected/msg1.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/expected/parse_without_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/expected/parse_without_examples.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/expected/with_nullable_and_without_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/expected/with_nullable_and_without_type.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/expected/without_nullable_and_without_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/expected/without_nullable_and_without_type.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/given/msg1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/given/msg1.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/given/parse_without_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/given/parse_without_examples.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/given/with_nullable_and_without_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/given/with_nullable_and_without_type.json -------------------------------------------------------------------------------- /pkg/schema/openapi/v2/testdata/given/without_nullable_and_without_type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/openapi/v2/testdata/given/without_nullable_and_without_type.json -------------------------------------------------------------------------------- /pkg/schema/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asyncapi/parser-go/HEAD/pkg/schema/parser.go --------------------------------------------------------------------------------