Skip to content

Commit

Permalink
Fix/update spec from tests (#391)
Browse files Browse the repository at this point in the history
* Remove missing nameOk field

* Add optional world signature field

* Add store ID field

* Remove non-existent self invite endpoint

* Change ShortName response to json

* Add ios int

* Add missing fields for instance

* Add nullability to fields

* Add acceptyedBy parameters to GetGroupInvites

* Add badges to group (no idea what the type is, seems to always return [])

* Add some of the assigned permissions props, not the data obj though

* Remove self invite path

* Add API Config docs

* Re-add nameok as optional

* Remove unused self invite example

* Fix sub-schema format

* Re-add needed types

* Add storeId to LimitedWorld

* Make limited store id nullable
  • Loading branch information
jellejurre authored Sep 28, 2024
1 parent 137a281 commit f232e2e
Show file tree
Hide file tree
Showing 19 changed files with 412 additions and 40 deletions.
6 changes: 0 additions & 6 deletions openapi/components/codeSamples/instances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
source: >-
curl -X GET "https://vrchat.com/api/1/instances/{worldId}:{instanceId}/shortName" \
-b "auth={authCookie}"
'/instance/{worldId}:{instanceId}/invite':
post:
- lang: cURL
source: >-
curl -X POST "https://vrchat.com/api/1/instances/{worldId}:{instanceId}/invite" \
-b "auth={authCookie}"
'/instances/s/{shortname}':
get:
- lang: cURL
Expand Down
2 changes: 0 additions & 2 deletions openapi/components/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@
$ref: "./paths/instances.yaml#/paths/~1instances~1{worldId}:{instanceId}"
"/instances/{worldId}:{instanceId}/shortName":
$ref: "./paths/instances.yaml#/paths/~1instances~1{worldId}:{instanceId}~1shortName"
"/instances/{worldId}:{instanceId}/invite":
$ref: "./paths/instances.yaml#/paths/~1instances~1{worldId}:{instanceId}~1invite"
"/instances/s/{shortName}":
$ref: "./paths/instances.yaml#/paths/~1instances~1s~1{shortName}"

Expand Down
19 changes: 0 additions & 19 deletions openapi/components/paths/instances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,25 +100,6 @@ paths:
$ref: ../responses/instances/InstanceShortNameResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'/instances/{worldId}:{instanceId}/invite':
parameters:
- $ref: ../parameters.yaml#/worldId
- $ref: ../parameters.yaml#/instanceId
post:
summary: Send Self Invite
tags:
- instances
operationId: sendSelfInvite
security:
- authCookie: []
description: Sends an invite to the instance to yourself.
x-codeSamples:
$ref: "../codeSamples/instances.yaml#/~1instance~1{worldId}:{instanceId}~1invite/post"
responses:
'200':
$ref: ../responses/instances/InstanceSelfInviteSuccess.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'/instances/s/{shortName}':
parameters:
- schema:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Returns an instance secureName and/or shortName.
content:
text/plain:
application/json:
schema:
$ref: ../../schemas/InstanceShortNameResponse.yaml
Loading

0 comments on commit f232e2e

Please sign in to comment.