Repository navigation
Conversation
Pull Request Test Coverage Report for Build 8657413748Details
💛 - Coveralls |
aaqilniz
force-pushed
the
fix/relation-info-in-specs
branch
2 times, most recently
from
April 12, 2024 05:25
64e98e3 to
3c4c5b8
Compare
aaqilniz
marked this pull request as ready for review
April 12, 2024 05:32
aaqilniz
force-pushed
the
fix/relation-info-in-specs
branch
from
August 17, 2024 03:37
4d13c0a to
cbdd6c5
Compare
aaqilniz
marked this pull request as draft
October 18, 2026 05:11
aaqilniz
force-pushed
the
fix/relation-info-in-specs
branch
2 times, most recently
from
October 30, 2026 15:53
15e81df to
6ba0341
Compare
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
aaqilniz
force-pushed
the
fix/relation-info-in-specs
branch
from
October 30, 2026 16:14
6ba0341 to
9d182ad
Compare
aaqilniz
marked this pull request as ready for review
October 30, 2026 16:21
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR improves OpenAPI schema generation in
@loopback/repository-json-schemaand@loopback/openapi-v3by addingx-foreign-keysandx-relation-typemetadata to thex-relationshipsobject.Previously, parsing relationship metadata from OpenAPI specs was limited because standard outputs lacked information about specific relationship types (e.g., distinguishing between a standard
hasManyand ahasManyThrough) and associated foreign keys.Changes
Vendor Extension Type (
SpecificationExtension):[key:x-${string}]: unknown) in@loopback/repository-json-schema/types.ts.Schema Building Refactor (
build-schema.ts):x-foreign-keysandx-relation-typealongside existing relationship metadata during model schema generation.OpenAPI Conversion Support (
json-to-schema.ts):x-relationshipsvendor extensions.Testing:
hasMany,belongsTo,hasOne, andreferencesManyrelationship extensions.Checklist
npm testpasses on your machinepackages/cliwere updatedexamples/*were updated👉 Check out how to submit a PR 👈