[ 
https://issues.apache.org/jira/browse/MESOS-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933873#comment-14933873
 ] 

Marco Massenzio commented on MESOS-2972:
----------------------------------------

Yes, I completely agree on wanting to avoid 'boilerplate' and ad-hoc schema 
checking.

However, I'd suggest to look into something like JsonSchema for that - I would 
assume that Docker (or someone else) had already done this?
Trying to model an arbitrary JSON model into PB is likely to be *extremely* 
difficult - if not outright impossible.



> Serialize Docker image spec as protobuf
> ---------------------------------------
>
>                 Key: MESOS-2972
>                 URL: https://issues.apache.org/jira/browse/MESOS-2972
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Timothy Chen
>            Assignee: Gilbert Song
>              Labels: mesosphere
>
> The Docker image specification defines a schema for the metadata json that it 
> puts into each image. Currently the docker image provisioner needs to be able 
> to parse and understand this metadata json, and we should create a protobuf 
> equivelent schema so we can utilize the json to protobuf conversion to read 
> and validate the metadata.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to