Skip to content

Commit

Permalink
feat: add map property to about configurations (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
leanmendoza authored Aug 28, 2024
1 parent cb4f351 commit 5df1e8a
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
20 changes: 19 additions & 1 deletion openapi/components/examples/global/200-about.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@
"value": {
"healthy": true,
"configurations": {
"realmName": "zeus"
"realmName": "zeus",
"map": {
"minimapEnabled": true,
"sizes": [
{ "left": -150, "top": 150, "right": 150, "bottom": -150 },
{ "left": 62, "top": 158, "right": 162, "bottom": 151 },
{ "left": 151, "top": 150, "right": 163, "bottom": 59 }
],
"satelliteView": {
"version": "v1",
"baseUrl": "https://genesis.city/map/latest",
"suffixUrl": ".jpg",
"topLeftOffset": { "x": -2, "y": -6 }
},
"parcelView": {
"version": "v1",
"imageUrl": "https://api.decentraland.org/v1/minimap.png"
}
}
},
"content": {
"healthy": true,
Expand Down
67 changes: 67 additions & 0 deletions openapi/components/schemas/global/about.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ properties:
items:
type: string
minimap:
deprecated: true
type: object
required:
- enabled
Expand All @@ -40,6 +41,72 @@ properties:
type: string
estateImage:
type: string
map:
type: object
required:
- sizes
- minimapEnabled
properties:
minimapEnabled:
type: boolean
sizes:
type: array
items:
type: object
properties:
top:
type: number
left:
type: number
bottom:
type: number
right:
type: number
parcelView:
type: object
required:
- version
properties:
version:
type: string
imageUrl:
type: string
satelliteView:
type: object
required:
- version
properties:
version:
type: string
baseUrl:
type: string
suffixUrl:
type: string
topLeftOffset:
type: object
properties:
x:
type: number
y:
type: number
thumbnailView:
type: object
required:
- version
properties:
version:
type: string
baseUrl:
type: string
suffixUrl:
type: string
topLeftOffset:
type: object
properties:
x:
type: number
y:
type: number
skybox:
type: object
properties:
Expand Down

0 comments on commit 5df1e8a

Please sign in to comment.