Skip to content
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

Update 4.0.0 #3

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Update 4.0.0 #3

merged 6 commits into from
Dec 6, 2024

Conversation

pavog
Copy link
Member

@pavog pavog commented Nov 19, 2024

I updated the generated code with openapi generator 7.8.0.

Changes:

  • Changes return type for APIKeysApi->getKeys() from \Aternos\HangarApi\Model\ApiKey to \Aternos\HangarApi\Model\ApiKey[]
  • Removes parameter platform_version from VersionsAPI->listVersions()
  • Removes parameter platformVersion from CompactProject->getVersions()
  • Removes parameter platformVersion from Project->getVersions()
  • Removes member platformVersion from VersionSearchOptions
  • Adds property description to ProjectCompact
  • Adds model for Tag
  • Changes type of property tags in ProjectSettings from string[] to \Aternos\HangarApi\Model\Tag[]

@pavog pavog changed the title Update 4.0.0 WIP: Update 4.0.0 Nov 19, 2024
@pavog pavog marked this pull request as draft November 19, 2024 14:34
@pavog pavog changed the title WIP: Update 4.0.0 Update 4.0.0 Nov 19, 2024
@pavog pavog marked this pull request as ready for review November 19, 2024 16:18
@pavog pavog requested a review from JulianVennen November 19, 2024 16:18
lib/Client/HangarAPIClient.php Outdated Show resolved Hide resolved
@@ -59,7 +59,7 @@ class ProjectSettings implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPITypes = [
'links' => '\Aternos\HangarApi\Model\LinkSection[]',
'tags' => 'string[]',
'tags' => '\Aternos\HangarApi\Model\Tag[]',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string[] is the correct type here but editing generated files is annoying, so just leave it, I guess

@JulianVennen
Copy link
Member

You could also add a real enum for Tag and use it in ProjectSearchOptions, like with the Platform and ProjectCategory enums in lib/Client/Options

@pavog
Copy link
Member Author

pavog commented Dec 4, 2024

You could also add a real enum for Tag and use it in ProjectSearchOptions, like with the Platform and ProjectCategory enums in lib/Client/Options

Done

@pavog pavog requested a review from JulianVennen December 4, 2024 12:12
@pavog pavog merged commit f78f233 into master Dec 6, 2024
3 checks passed
@pavog pavog deleted the update-tags branch December 6, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants