

def _get_schema(service):
    schema = create_schema(service.dict())
    schema['required'].remove('reregistered_time')
    schema['required'].remove('pid')
    service['required'].remove('executors')
    schema['properties']['offered_resources']['required'].remove('ports')
    schema['properties']['resources']['required'].remove('ports')
    schema['properties']['used_resources']['required'].remove('ports')
    schema['additionalProperties'] = True
    return schema

dataset/ETHPy150Open dcos/dcos-cli/cli/tests/integrations/test_service.py _get_schema/VarMisuse@41/58 `schema`->`service`