Skip to content

Commit

Permalink
Use forked API spec to fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Sep 2, 2024
1 parent 8920259 commit 2608aed
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ invokerPackage: Aternos\ModrinthApi
artifactVersion: 2.1.0
generatorName: php
outputDir: .
inputSpec: https://docs.modrinth.com/redocusaurus/plugin-redoc-0.yaml
inputSpec: https://raw.githubusercontent.com/JulianVennen/modrinth-docs/master/static/openapi.yaml
4 changes: 4 additions & 0 deletions lib/Model/BaseProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';

/**
* Gets allowable values of the enum
Expand All @@ -277,6 +279,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -291,6 +294,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/CreatableProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const STATUS_APPROVED = 'approved';
public const STATUS_ARCHIVED = 'archived';
public const STATUS_REJECTED = 'rejected';
Expand Down Expand Up @@ -384,6 +386,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -398,6 +401,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/EditableProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const STATUS_APPROVED = 'approved';
public const STATUS_ARCHIVED = 'archived';
public const STATUS_REJECTED = 'rejected';
Expand Down Expand Up @@ -370,6 +372,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -384,6 +387,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/ModifiableProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const STATUS_APPROVED = 'approved';
public const STATUS_ARCHIVED = 'archived';
public const STATUS_REJECTED = 'rejected';
Expand Down Expand Up @@ -358,6 +360,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -372,6 +375,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/NonSearchProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const STATUS_APPROVED = 'approved';
public const STATUS_ARCHIVED = 'archived';
public const STATUS_REJECTED = 'rejected';
Expand Down Expand Up @@ -346,6 +348,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -360,6 +363,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const STATUS_APPROVED = 'approved';
public const STATUS_ARCHIVED = 'archived';
public const STATUS_REJECTED = 'rejected';
Expand Down Expand Up @@ -473,6 +475,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -487,6 +490,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/ProjectResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const PROJECT_TYPE_MOD = 'mod';
public const PROJECT_TYPE_MODPACK = 'modpack';
public const PROJECT_TYPE_RESOURCEPACK = 'resourcepack';
Expand All @@ -386,6 +388,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -400,6 +403,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/Model/ServerRenderedProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,11 @@ public function getModelName()
public const CLIENT_SIDE_REQUIRED = 'required';
public const CLIENT_SIDE_OPTIONAL = 'optional';
public const CLIENT_SIDE_UNSUPPORTED = 'unsupported';
public const CLIENT_SIDE_UNKNOWN = 'unknown';
public const SERVER_SIDE_REQUIRED = 'required';
public const SERVER_SIDE_OPTIONAL = 'optional';
public const SERVER_SIDE_UNSUPPORTED = 'unsupported';
public const SERVER_SIDE_UNKNOWN = 'unknown';
public const PROJECT_TYPE_MOD = 'mod';
public const PROJECT_TYPE_MODPACK = 'modpack';
public const PROJECT_TYPE_RESOURCEPACK = 'resourcepack';
Expand All @@ -320,6 +322,7 @@ public function getClientSideAllowableValues()
self::CLIENT_SIDE_REQUIRED,
self::CLIENT_SIDE_OPTIONAL,
self::CLIENT_SIDE_UNSUPPORTED,
self::CLIENT_SIDE_UNKNOWN,
];
}

Expand All @@ -334,6 +337,7 @@ public function getServerSideAllowableValues()
self::SERVER_SIDE_REQUIRED,
self::SERVER_SIDE_OPTIONAL,
self::SERVER_SIDE_UNSUPPORTED,
self::SERVER_SIDE_UNKNOWN,
];
}

Expand Down

0 comments on commit 2608aed

Please sign in to comment.