oxidecomputer / amd-apcb

AMD Generic Encapsulated Software Architecture Platform Security Processor Configuration Block manipulation library
Mozilla Public License 2.0
13 stars 1 forks source link

Add Permissive Serializer #113

Open daym opened 9 months ago

daym commented 9 months ago

Right now, the serializer craps out on the first invalid field value it finds.

This isn't nice for bringup of new generations where we usually have (a few) unknown values on some fields and so the entire serializion will fail--and what do we do then?

Better to have the serializer just warn on fields that have unknown values and then leave it off the json.