private static int countSegments(String pointer) {
        int totalSegments = 0;
        for (int i = 0; i < pointer.length(); i++) {
            if (pointer.charAt(i) == '/') {
                totalSegments++;
            }
        }

        return totalSegments;
    }
A workaround for including definitions for Unit; it's only included in the schema if a union targets it.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/JsonSchemaConverter.java