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

Match file extension to type #1247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Match file extension to type #1247

wants to merge 1 commit into from

Conversation

lognaturel
Copy link
Member

@lognaturel lognaturel commented Oct 28, 2024

@eyelidlessness pointed out that the extension and type are in conflict!

What has been done to verify that this works as intended?

Nothing.

Why is this the best possible solution? Were any other approaches considered?

I could have changed the type to audio. Doesn't feel like it matters.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Hopefully the examples will make more sense!

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

This is it.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

@@ -4899,7 +4899,7 @@ paths:
items:
$ref: '#/components/schemas/FormAttachment'
example:
- name: myfile.mp3
- name: myfile.png
Copy link
Contributor

Choose a reason for hiding this comment

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

these 3 changes make sense 👍

@@ -12264,7 +12264,7 @@ components:
properties:
name:
type: string
example: myfile.mp3
example: myfile.png
Copy link
Contributor

Choose a reason for hiding this comment

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

What was wrong with this file being a PNG?

Copy link
Member

Choose a reason for hiding this comment

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

I think either way would be fine, but I think the consistency doesn't hurt.

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.

3 participants