microsoft/AdaptiveCards

AC Typed Schema files not valid JSON Schema

Opened this issue · 0 comments

Why bother providing jsonschema definitions for AdaptiveCard and friends (and advertising it prominently) when the schema's aren't actually valid?

Discussed in #8943

Originally posted by jamesthurley June 26, 2024
For example this file:

https://github.com/microsoft/AdaptiveCards/blob/main/schemas/src/enums/ImageSize.json

Says it uses this schema:

https://raw.githubusercontent.com/microsoft/AdaptiveCards/6f39aedce45864ae1067ed44a5551dc973790bb5/source/nodejs/typed-schema/schema/lib/Type.json

But it isn't valid against that schema. It contains an extra description property, and is missing the type property. Have the schemas for the ac-typed-schema JSON been abandoned? Would a PR to update them be appreciated?