@@ -367,6 +367,49 @@ func (c *CsharpInfo) String() string {
367367 return fmt .Sprintf ("%#v" , c )
368368}
369369
370+ type CustomSection struct {
371+ Name string `json:"name" url:"name"`
372+ Language Language `json:"language" url:"language"`
373+ Content string `json:"content" url:"content"`
374+
375+ extraProperties map [string ]interface {}
376+ _rawJSON json.RawMessage
377+ }
378+
379+ func (c * CustomSection ) GetExtraProperties () map [string ]interface {} {
380+ return c .extraProperties
381+ }
382+
383+ func (c * CustomSection ) UnmarshalJSON (data []byte ) error {
384+ type unmarshaler CustomSection
385+ var value unmarshaler
386+ if err := json .Unmarshal (data , & value ); err != nil {
387+ return err
388+ }
389+ * c = CustomSection (value )
390+
391+ extraProperties , err := core .ExtractExtraProperties (data , * c )
392+ if err != nil {
393+ return err
394+ }
395+ c .extraProperties = extraProperties
396+
397+ c ._rawJSON = json .RawMessage (data )
398+ return nil
399+ }
400+
401+ func (c * CustomSection ) String () string {
402+ if len (c ._rawJSON ) > 0 {
403+ if value , err := core .StringifyJSON (c ._rawJSON ); err == nil {
404+ return value
405+ }
406+ }
407+ if value , err := core .StringifyJSON (c ); err == nil {
408+ return value
409+ }
410+ return fmt .Sprintf ("%#v" , c )
411+ }
412+
370413type GithubRemote struct {
371414 // A full repo url (i.e. https://github.com/fern-api/fern)
372415 RepoUrl string `json:"repoUrl" url:"repoUrl"`
@@ -947,17 +990,18 @@ func (p *PythonInfo) String() string {
947990// that comes from each generator (i.e. features, requirements, and more).
948991type ReadmeConfig struct {
949992 // If specified, the original README.md will be fetched from this remote (if it exists).
950- Remote * Remote `json:"remote,omitempty" url:"remote,omitempty"`
951- Language * LanguageInfo `json:"language,omitempty" url:"language,omitempty"`
952- Organization string `json:"organization" url:"organization"`
953- ApiName * string `json:"apiName,omitempty" url:"apiName,omitempty"`
954- BannerLink * string `json:"bannerLink,omitempty" url:"bannerLink,omitempty"`
955- Introduction * string `json:"introduction,omitempty" url:"introduction,omitempty"`
956- ApiReferenceLink * string `json:"apiReferenceLink,omitempty" url:"apiReferenceLink,omitempty"`
957- ReferenceMarkdownPath * string `json:"referenceMarkdownPath,omitempty" url:"referenceMarkdownPath,omitempty"`
958- Requirements []string `json:"requirements,omitempty" url:"requirements,omitempty"`
959- DisabledFeatures []* FeatureId `json:"disabledFeatures,omitempty" url:"disabledFeatures,omitempty"`
960- WhiteLabel * bool `json:"whiteLabel,omitempty" url:"whiteLabel,omitempty"`
993+ Remote * Remote `json:"remote,omitempty" url:"remote,omitempty"`
994+ Language * LanguageInfo `json:"language,omitempty" url:"language,omitempty"`
995+ Organization string `json:"organization" url:"organization"`
996+ ApiName * string `json:"apiName,omitempty" url:"apiName,omitempty"`
997+ BannerLink * string `json:"bannerLink,omitempty" url:"bannerLink,omitempty"`
998+ Introduction * string `json:"introduction,omitempty" url:"introduction,omitempty"`
999+ ApiReferenceLink * string `json:"apiReferenceLink,omitempty" url:"apiReferenceLink,omitempty"`
1000+ ReferenceMarkdownPath * string `json:"referenceMarkdownPath,omitempty" url:"referenceMarkdownPath,omitempty"`
1001+ Requirements []string `json:"requirements,omitempty" url:"requirements,omitempty"`
1002+ DisabledFeatures []* FeatureId `json:"disabledFeatures,omitempty" url:"disabledFeatures,omitempty"`
1003+ WhiteLabel * bool `json:"whiteLabel,omitempty" url:"whiteLabel,omitempty"`
1004+ CustomSections []* CustomSection `json:"customSections,omitempty" url:"customSections,omitempty"`
9611005 // Specifies the list of features supported by a specific generator.
9621006 // The features are rendered in the order they're specified.
9631007 Features []* ReadmeFeature `json:"features,omitempty" url:"features,omitempty"`
0 commit comments