Skip to content

error or warn on non-json schema inputs #516

Description

@cameronelliott

I only get prelude output from cargo-typify with no types, from my .json

Maybe I am making a silly mistake.
xaa.json

I only get the .rs prelude output with no types on this file.

$ cargo typify -o /dev/stdout xaa.json
#![allow(clippy::redundant_closure_call)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::match_single_binding)]
#![allow(clippy::clone_on_copy)]

use serde::{Deserialize, Serialize};
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions