hack-json-schema icon indicating copy to clipboard operation
hack-json-schema copied to clipboard

Clean up generated code for basic `type: "object"`

Open mwildehahn opened this issue 5 years ago • 0 comments

Right now it does something like:

	public static function check(mixed $input, string $pointer): blocks_suggestions_callback_validator_properties_unfurl_t {
		$typed = Constraints\ObjectConstraint::check($input, $pointer, self::$coerce);

		$output = dict[];

        return $typed;
    }

we shouldn't assign output

mwildehahn avatar Jul 25 '19 16:07 mwildehahn