def METHOD_NAME(stdin_spec: dict, logger=logger) -> Spec | None:
    try:
        logger.info("Loading spec file from STDIN")
        spec = SpecSchema().loads(json.dumps(stdin_spec), many=False)
        if isinstance(spec, Spec):
            return spec
    except marshmallow.exceptions.ValidationError as e:
        logger.warning(f"Ignored validation error on STDIN, {e}", exc_info=e)
    return None