prompty icon indicating copy to clipboard operation
prompty copied to clipboard

extensible frontmatter schema

Open pelikhan opened this issue 1 year ago • 2 comments

We would like to store more data in the frontmatter, like "url" or "source". Is it possible to make it extensible or can we submit new optional fields?

pelikhan avatar Oct 23 '24 20:10 pelikhan

I see - as part of the metadata? This is a good suggestion.

sethjuarez avatar Oct 24 '24 16:10 sethjuarez

Yes, the frontmatter can be useful to store a lot of custom metadata. Currently the schema does not allow additional properties.

pelikhan avatar Oct 24 '24 16:10 pelikhan

In the latest spec you can add a ton of optional things - will update the docs

sethjuarez avatar Jul 11 '25 01:07 sethjuarez

The schema hasn't been updated https://github.com/microsoft/prompty/blob/main/vscode/prompty/schemas/prompty.yaml

pelikhan avatar Jul 11 '25 02:07 pelikhan

I moved to a TypeSpec definition to make it all much better. The idea is to automatically generate some of the base classes (eventually) in multiple languages so all the loaders work the same. The latest dev release has the majority of the new schema implemented (finalizing the output properties this week).

sethjuarez avatar Jul 13 '25 04:07 sethjuarez