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

docs: Updated spell schema's damage property #344

Conversation

ThomasGCarpenter
Copy link
Contributor

What does this do?

Spell damage schema models added to common.yml file allow for more accurate spell damage schema.

How was it tested?

Followed swagger README instructions to set up local development environment which ran successfully after adding new openapi documentation. Then validated and bundled swagger with no errors. Then manually tested various http requests on Postman successfully.

Is there a Github issue this is resolving?

Yes. This resolves issue #289.

Was any impacted documentation updated to reflect this change?

The changes were made exclusively to the api documentation.

Here's a fun image for your troubles

random photo - update me

Comment on lines 260 to 279
damage-at-character-level-model:
description: |
'Spell Damage'
type: object
properties:
damage_at_character_level:
type: object
additionalProperties: true
damage_type:
$ref: './combined.yml#/APIReference'
damage-at-slot-level-model:
description: |
'Spell Damage'
type: object
properties:
damage_at_slot_level:
type: object
additionalProperties: true
damage_type:
$ref: './combined.yml#/APIReference'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you put these in spell.yml for now? I don't think these shapes get used outside of Spells for right now.

src/swagger/swagger.yml Outdated Show resolved Hide resolved
@@ -323,3 +323,5 @@ components:

schemas:
$ref: './schemas/combined.yml'


Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor Author

@ThomasGCarpenter ThomasGCarpenter left a comment

Choose a reason for hiding this comment

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

Hello, thank you for the feedback. I added the spell damage models to the spell.yml file.

@bagelbits bagelbits changed the title Updated spell schema's damage property docs: Updated spell schema's damage property Dec 29, 2022
@bagelbits bagelbits merged commit 6ef4911 into 5e-bits:main Dec 29, 2022
@github-actions
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants