32 oedp javascript library to generate data passport from the data passports json schema#34
Conversation
|
Hi @gadhalekshmip thanks a lot, here are my notes.
|
|
One more note, the JSON schema has explicit requirements listed to the field, owever the form does not seem to respect these requirements. While JSON Schema requires me to supply date time for example as validUntil, I was still able to submit random text {
"id": "4eae4038-11c3-481b-bb7e-7ccc5ef7eb8a",
"scope": "for the dataset of the AI coaching model training",
"created": "2025-03-02",
"product": "coaching api",
"updated": "2025-03-02",
"validUntil": "jhbljsdbhasldjfbh",
"models": "lk;noij"
} |
|
I do confirm that raw GitHub link with JSON schema works https://raw.githubusercontent.com/OpenEthicsAI/OEDP/refs/heads/main/schema/oedp.passport.schema.json the submission of the URL https://openethics.ai/schema/oedp/oedp.passport.schema.json is blocked by CORS, which will be typical, so instruction needed on how to overcome that (or a workaround) |
|
Hi @gadhalekshmip did you have a chace to come back to the issue and review the comments I provided earlier? |
|
Hi @nikiluk ,
That said, I’m still not entirely sure about the full scope of CORS blocks across different environments—I’m a bit unclear on how that works technically. If there's a better approach you recommend, especially for production, I’d love to learn more. |


This update includes a feature that allows the code to fetch JSON schemas from specific URLs. It successfully retrieves schemas from certain sources, such as OpenEthics GitHub links like:
https://github.com/OpenEthicsAI/OEDP/blob/main/schema/oedp.annotation.schema.json.
Please review and provide feedback. Let me know if further modifications are needed. Thank you!