Skip to content

Conversation

@RomanHotsiy
Copy link
Member

@RomanHotsiy RomanHotsiy commented Dec 15, 2025

What/Why/How?

Added support for Open-RPC spec: https://spec.open-rpc.org/

Reference

JSON-RPC is used in A2A Protocol so it may gain popularity.

Testing

Added unit and e2e test.

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@RomanHotsiy RomanHotsiy requested review from a team as code owners December 15, 2025 08:04
@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2025

🦋 Changeset detected

Latest commit: 1b7986e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Minor
@redocly/cli Minor
@redocly/respect-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

Command Mean [s] Min [s] Max [s] Relative
redocly lint resources/rebilly.yaml 1.455 ± 0.033 1.417 1.522 1.02 ± 0.04
redocly-next lint resources/rebilly.yaml 1.432 ± 0.047 1.376 1.505 1.00

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.58% (🎯 78%) 6185 / 7870
🔵 Statements 78.01% (🎯 78%) 6390 / 8191
🔵 Functions 81.97% (🎯 81%) 1264 / 1542
🔵 Branches 70.39% (🎯 70%) 4239 / 6022
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/detect-spec.ts 97.56% 96.77% 100% 97.56% 38
packages/core/src/lint.ts 94.11% 88.23% 100% 94% 108-119, 142
packages/core/src/oas-types.ts 100% 100% 100% 100%
packages/core/src/visitors.ts 92.94% 90.24% 90% 92.5% 555, 592, 595, 616, 648, 662
packages/core/src/bundle/bundle-visitor.ts 68.33% 63.28% 100% 68.33% 24, 28-36, 41-49, 56, 65, 73, 78-99, 156-168, 185-186, 199-200, 237
packages/core/src/config/all.ts 100% 100% 100% 100%
packages/core/src/config/builtIn.ts 100% 100% 100% 100%
packages/core/src/config/config-resolvers.ts 76.1% 60.89% 93.33% 76.92% 65, 68, 88-91, 141, 182, 248, 259, 268, 281, 291, 294-298, 303-312, 335-337, 347, 350, 353, 356, 359, 372-374, 378, 384, 387, 390-393, 396-399, 402-405, 419-421, 428, 431, 434, 437, 440, 443, 468-470, 475-481
packages/core/src/config/config.ts 65.8% 68.24% 78.04% 66.27% 204-228, 254, 258, 262-280, 312, 330-350, 429-459
packages/core/src/config/minimal.ts 100% 100% 100% 100%
packages/core/src/config/recommended-strict.ts 100% 100% 100% 100%
packages/core/src/config/recommended.ts 100% 100% 100% 100%
packages/core/src/config/rules.ts 85.71% 87.5% 80% 92.3% 56-61
packages/core/src/config/spec.ts 100% 100% 100% 100%
packages/core/src/config/utils.ts 97.33% 83.33% 100% 98.64% 34, 82-84
packages/core/src/decorators/openrpc/index.ts 100% 100% 100% 100%
packages/core/src/rules/common/struct.ts 97.22% 91.78% 100% 97.01% 78-82, 175-179
packages/core/src/rules/openrpc/index.ts 100% 100% 100% 100%
packages/core/src/rules/openrpc/no-unused-components.ts 65% 70% 50% 68.42% 29, 58-83
packages/core/src/rules/openrpc/spec-no-duplicated-method-params.ts 81.25% 70% 100% 100% 7, 13, 17
packages/core/src/rules/openrpc/spec-no-required-params-after-optional.ts 83.33% 66.66% 100% 100% 7, 13, 17
packages/core/src/types/asyncapi2.ts 95.78% 50% 85.71% 95.78% 47-67, 440-442, 448, 456-458, 464
packages/core/src/types/asyncapi3.ts 52.63% 14.28% 25% 52.63% 98-104, 142-150, 294-322
packages/core/src/types/json-schema-draft7.shared.ts 78.57% 64.28% 85.71% 78.57% 90-93
packages/core/src/types/oas3.ts 75.36% 31.81% 66.66% 75.36% 343, 350, 459-462, 493-517
packages/core/src/types/oas3_1.ts 51.16% 25% 75% 51.16% 144, 151, 160, 193, 212-264
packages/core/src/types/oas3_2.ts 55.55% 0% 0% 55.55% 39-126
packages/core/src/types/openrpc.ts 100% 100% 100% 100%
packages/core/src/types/redocly-yaml.ts 92.18% 82.85% 100% 91.8% 357, 359, 411, 414, 417
Generated in workflow #8178 for commit 1b7986e by the Vitest Coverage Report Action

@RomanHotsiy
Copy link
Member Author

No idea why the smoke tests on node 22 yarn are failing. cc @tatomyr

@tatomyr
Copy link
Collaborator

tatomyr commented Dec 15, 2025

the smoke tests on node 22 yarn are failing

@RomanHotsiy sometimes yarn fails to resolve ajv-formats (haven't figured why). Should pass after re-running smokes.

Copy link
Collaborator

@tatomyr tatomyr left a comment

Choose a reason for hiding this comment

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

Left a minor comment. Otherwise looks good.

@RomanHotsiy RomanHotsiy merged commit 0bd3f46 into main Dec 17, 2025
44 checks passed
@RomanHotsiy RomanHotsiy deleted the openrpc-support branch December 17, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants