-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support GeoPoint used in loopback 3 #7203
Conversation
Signed-off-by: Francisco Buceta <[email protected]>
Thank you @frbuceta for the pull request! ❤️ I'd like to share few pointers and some information for better context. In the past, we have been discussing GeoPoint support in LB4 here: #1981, you may find useful information and additional pointers there. We also have a package loopback-datatype-geopoint which adds helpers like How Geopoint works in LoopBack 3 The REST API layer supports multiple ways how to represent GeoPoint values:
Juggler (data access layer) supports the same three representations:
BTW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, your pull request is improving only the part building JSON/OpenAPI schema to understand Juggler properties defined with GeoPoint
type. That's a great first step 👍
It makes me wonder though, how would you create such model? How would be the geopoint property described at TypeScript level (what type would it have)? Would you mind to add an integration-level test to show this in practice? See packages/repository-json-schema/src/__tests__/integration/build-schema.integration.ts
for examples of tests building JSON schema from a full model class created using @model
and @property
decorators.
This pull request has been marked stale because it has not seen activity within two months. It will be closed within 14 days of being stale unless there is new activity. |
This pull request has been closed due to continued inactivity. If you are interested in finishing the proposed changes, then feel free to re-open this pull request or open a new one. |
This is a temporary solution, you have to look for a better option
Checklist
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈