@@ -441,8 +441,7 @@ def published_data_dictionary(dataset_type: str) -> Response:
441441 return _data_dictionary (dataset_type , published_resource = True )
442442
443443
444- def _schema_json (dataset_type : str , published_resource : bool = False ,
445- include_example : bool = True ) -> Response :
444+ def _schema_json (dataset_type : str , published_resource : bool = False ) -> Response :
446445 try :
447446 geno = get_geno (dataset_type )
448447 except RecombinantException :
@@ -527,7 +526,7 @@ def _schema_json(dataset_type: str, published_resource: bool = False,
527526 for ck , cv in choice_fields [fld ['id' ]]:
528527 choices [ck ] = cv
529528
530- if include_example and 'examples' in chromo :
529+ if not published_resource and 'examples' in chromo :
531530 ex_record = chromo ['examples' ]['record' ]
532531 example = {}
533532 for field in chromo ['fields' ]:
@@ -555,9 +554,7 @@ def schema_json(dataset_type: str) -> Response:
555554@recombinant .route ('/recombinant-published-schema/<dataset_type>.json' )
556555@nocache_store
557556def published_schema_json (dataset_type : str ) -> Response :
558- include_example = asbool (request .args .get ('include_example' , False ))
559- return _schema_json (dataset_type , published_resource = True ,
560- include_example = include_example )
557+ return _schema_json (dataset_type , published_resource = True )
561558
562559
563560@recombinant .route ('/recombinant/<resource_name>' )
0 commit comments