difference in json schema before and after data_model_generation #1894
esteininger
started this conversation in
General
Replies: 1 comment
-
here are the two: {'$defs': {'Company': {'properties': {'company_name': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'The name of the company.', 'title': 'Company Name'}, 'company_type': {'anyOf': [{'enum': ['LLC', 'C-CORP', 'OTHER'], 'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'Category of business entity the company is registered as.', 'title': 'Company Type'}, 'company_logo': {'anyOf': [{'format': 'uri', 'maxLength': 2083, 'minLength': 1, 'type': 'string'}, {'type': 'null'}], 'description': "The URL of the company's logo.", 'title': 'Company Logo'}, 'company_website': {'anyOf': [{'format': 'uri', 'maxLength': 2083, 'minLength': 1, 'type': 'string'}, {'type': 'null'}], 'description': "The URL of the company's website.", 'title': 'Company Website'}, 'industry': {'description': 'The industry/sector the company operates in.', 'enum': ['Software', 'OTHER'], 'title': 'Industry', 'type': 'string'}, 'round_name': {'description': 'The fundraising round name.', 'enum': ['Pre-Seed', 'Seed', 'Series A', 'Series B', 'Series C', 'Series D', 'Secondary', 'OTHER'], 'title': 'Round Name', 'type': 'string'}, 'stakeholder_type': {'description': 'The type of stakeholder in the investment.', 'enum': ['Investor', 'OTHER'], 'title': 'Stakeholder Type', 'type': 'string'}, 'investment_type': {'description': 'The type of investment vehicle.', 'enum': ['SAFE', 'Convertible Note', 'Preferred', 'OTHER'], 'title': 'Investment Type', 'type': 'string'}, 'valuation_cap': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'description': 'The valuation cap of the company.', 'title': 'Valuation Cap'}, 'capital_contribution': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'description': 'The capital contribution of the company.', 'title': 'Capital Contribution'}}, 'required': ['company_logo', 'company_website', 'industry', 'round_name', 'stakeholder_type', 'investment_type', 'valuation_cap', 'capital_contribution'], 'title': 'Company', 'type': 'object'}}, 'properties': {'company_details': {'items': {'$ref': '#/$defs/Company'}, 'title': 'Company Details', 'type': 'array'}}, 'required': ['company_details'], 'title': 'Companies', 'type': 'object'} and {'$defs': {'Company': {'properties': {'company_name': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'The name of the company.', 'title': 'Company Name'}, 'company_type': {'anyOf': [{'$ref': '#/$defs/CompanyType'}, {'type': 'null'}], 'default': None, 'description': 'Category of business entity the company is registered as.', 'title': 'Company Type'}, 'company_logo': {'anyOf': [{'format': 'uri', 'minLength': 1, 'type': 'string'}, {'type': 'null'}], 'description': "The URL of the company's logo.", 'title': 'Company Logo'}, 'company_website': {'anyOf': [{'format': 'uri', 'minLength': 1, 'type': 'string'}, {'type': 'null'}], 'description': "The URL of the company's website.", 'title': 'Company Website'}, 'industry': {'allOf': [{'$ref': '#/$defs/Industry'}], 'description': 'The industry/sector the company operates in.'}, 'round_name': {'allOf': [{'$ref': '#/$defs/RoundName'}], 'description': 'The fundraising round name.', 'title': 'Round Name'}, 'stakeholder_type': {'allOf': [{'$ref': '#/$defs/StakeholderType'}], 'description': 'The type of stakeholder in the investment.', 'title': 'Stakeholder Type'}, 'investment_type': {'allOf': [{'$ref': '#/$defs/InvestmentType'}], 'description': 'The type of investment vehicle.', 'title': 'Investment Type'}, 'valuation_cap': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'description': 'The valuation cap of the company.', 'title': 'Valuation Cap'}, 'capital_contribution': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'description': 'The capital contribution of the company.', 'title': 'Capital Contribution'}}, 'required': ['company_logo', 'company_website', 'industry', 'round_name', 'stakeholder_type', 'investment_type', 'valuation_cap', 'capital_contribution'], 'title': 'Company', 'type': 'object'}, 'CompanyType': {'enum': ['LLC', 'C-CORP', 'OTHER'], 'title': 'CompanyType', 'type': 'string'}, 'Industry': {'enum': ['Software', 'OTHER'], 'title': 'Industry', 'type': 'string'}, 'InvestmentType': {'enum': ['SAFE', 'Convertible Note', 'Preferred', 'OTHER'], 'title': 'InvestmentType', 'type': 'string'}, 'RoundName': {'enum': ['Pre-Seed', 'Seed', 'Series A', 'Series B', 'Series C', 'Series D', 'Secondary', 'OTHER'], 'title': 'RoundName', 'type': 'string'}, 'StakeholderType': {'enum': ['Investor', 'OTHER'], 'title': 'StakeholderType', 'type': 'string'}}, 'properties': {'company_details': {'items': {'$ref': '#/$defs/Company'}, 'title': 'Company Details', 'type': 'array'}}, 'required': ['company_details'], 'title': 'Companies', 'type': 'object'}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
anybody experience this as well?
Beta Was this translation helpful? Give feedback.
All reactions