Content Types of JSON in particular schema
https://softwareengineering.stackexchange.com/questions/385877
-
19-02-2021 - |
سؤال
My application stores two different types of json data in s3.
For example: Schema-Foo and Schema-Bar.
Up to now I used the content-type application/json
for both.
I would like to make a distinction between both types in the s3 storage.
I am unsure what the best way would be.
Is it possible to do something like application/json-schema-foo
application/json-schema-bar
?
لا يوجد حل صحيح
نصائح أخرى
You might be able to use content-type parameters as in
application/json; schema=foo
application/json; schema=bar
I don't know whether adding user-defined parameters is officially blessed, but as long as you're talking between your own pieces of software who is going to punish you?
لا تنتمي إلى softwareengineering.stackexchange