<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:24 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-3773] Is there a way to create a $jsonSchema validator for a collection based on its data?</title>
                <link>https://jira.mongodb.org/browse/JAVA-3773</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Hello,&#160;&lt;/p&gt;

&lt;p&gt;I know there are ways to create a schema from collection even in a JSON fashion, but is there a way to actually create a $jsonSchema that can be used as a validator in a collection?&#160;&lt;/p&gt;

&lt;p&gt;If so, how does one achieve this?&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1394318">JAVA-3773</key>
            <summary>Is there a way to create a $jsonSchema validator for a collection based on its data?</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="12300">Won&apos;t Do</resolution>
                                        <assignee username="durran.jordan@mongodb.com">Durran Jordan</assignee>
                                    <reporter username="daubersc@fim.uni-passau.de">Kai Dauberschmidt</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Jun 2020 10:55:53 +0000</created>
                <updated>Fri, 3 Jul 2020 11:28:29 +0000</updated>
                            <resolved>Thu, 2 Jul 2020 13:18:26 +0000</resolved>
                                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3269753" author="JIRAUSER1253644" created="Fri, 3 Jul 2020 11:28:29 +0000"  >&lt;p&gt;what would you recommend as a scalable and reliable tool for schema extraction?&#160;&lt;/p&gt;</comment>
                            <comment id="3268239" author="durran.jordan@10gen.com" created="Thu, 2 Jul 2020 13:18:04 +0000"  >&lt;p&gt;The only way to achieve this would be to use Compass or the mongodb-schema Node.js package to create the schema and then take that and convert it to a $jsonSchema oneself. I would suggest opening a ticket in the COMPASS project to ask for a feature to generate the $jsonSchema itself.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxf7vr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>