mocker image inspect and mocker inspect --type=image produce different output formats (they should be identical, as they are in Docker), and neither is Docker-compatible.
Version: Mocker v0.3.2
Root Cause
Data layer:
ImageInfo model only has 6 fields (id, repository, tag, labels, size, created)
ImageManager.toImageInfo() stubs size: 0 and created: Date() instead of reading real metadata
Serialization layer:
ImageInspect.swift builds its own JSONEncoder() (no array wrapping, no ISO8601)
Inspect.swift uses TableFormatter.printJSONArray (array + ISO8601)
- No shared serializer (two commands diverge)
mocker image inspectandmocker inspect --type=imageproduce different output formats (they should be identical, as they are in Docker), and neither is Docker-compatible.Version: Mocker v0.3.2
Root Cause
Data layer:
ImageInfomodel only has 6 fields (id,repository,tag,labels,size,created)ImageManager.toImageInfo()stubssize: 0andcreated: Date()instead of reading real metadataSerialization layer:
ImageInspect.swiftbuilds its ownJSONEncoder()(no array wrapping, no ISO8601)Inspect.swiftusesTableFormatter.printJSONArray(array + ISO8601)