Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 330 for Omit (0.02 seconds)

  1. docs/en/docs/tutorial/response-model.md

    * `tax: float = 10.5` has a default of `10.5`.
    * `tags: List[str] = []` has a default of an empty list: `[]`.
    
    but you might want to omit them from the result if they were not actually stored.
    
    For example, if you have models with many optional attributes in a NoSQL database, but you don't want to send very long JSON responses full of default values.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/server-sent-events.md

    As in this case the function is not async, the right return type would be `Iterable[Item]`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    ### No Return Type { #no-return-type }
    
    You can also omit the return type. FastAPI will use the [`jsonable_encoder`](./encoder.md) to convert the data and send it.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[34:37] hl[35] *}
    
    ## `ServerSentEvent` { #serversentevent }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/stream-json-lines.md

    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}
    
    ### No Return Type { #no-return-type }
    
    You can also omit the return type. FastAPI will then use the [`jsonable_encoder`](./encoder.md) to convert the data to something that can be serialized to JSON and then send it as JSON Lines.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/body-updates.md

    But the example here uses `PATCH` because it was created for these use cases.
    
    ///
    
    /// note
    
    Notice that the input model is still validated.
    
    So, if you want to receive partial updates that can omit all the attributes, you need to have a model with all the attributes marked as optional (with default values or `None`).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. helm/minio/templates/deployment.yaml

          runtimeClassName: "{{ .Values.runtimeClassName }}"
          {{- end }}
          {{- if and .Values.securityContext.enabled .Values.persistence.enabled }}
          securityContext:
            {{ omit .Values.securityContext "enabled" | toYaml | nindent 8 }}
          {{- end }}
          {{ if .Values.serviceAccount.create }}
          serviceAccountName: {{ .Values.serviceAccount.name }}
          {{- end }}
          containers:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 10 15:48:31 GMT 2024
    - 8.6K bytes
    - Click Count (0)
  6. chainable_api.go

    			}
    		}
    	default:
    		tx.AddError(fmt.Errorf("unsupported select args %v %v", query, args))
    	}
    
    	return
    }
    
    // Omit specify fields that you want to ignore when creating, updating and querying
    func (db *DB) Omit(columns ...string) (tx *DB) {
    	tx = db.getInstance()
    
    	if len(columns) == 1 && strings.ContainsRune(columns[0], ',') {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 19 01:49:06 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  7. helm/minio/templates/post-job.yaml

          {{- end }}
          {{- with .Values.postJob.tolerations }}
          tolerations: {{- toYaml . | nindent 8 }}
          {{- end }}
          {{- if .Values.postJob.securityContext.enabled }}
          securityContext: {{ omit .Values.postJob.securityContext "enabled" | toYaml | nindent 12 }}
          {{- end }}
          volumes:
            - name: etc-path
              emptyDir: {}
            - name: tmp
              emptyDir: {}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 10 15:48:31 GMT 2024
    - 10.4K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/YamlRestCompatTestPlugin.java

            yamlCompatTestSourceSet.getOutput().dir(transformCompatTestTask.map(RestCompatTestTransformTask::getOutputDirectory));
    
            // Grab the original rest resources locations so we can omit them from the compatibility testing classpath down below
            Provider<Directory> originalYamlSpecsDir = project.getTasks()
                .withType(CopyRestApiTask.class)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 16:26:11 GMT 2021
    - 11.7K bytes
    - Click Count (0)
  9. helm/minio/templates/statefulset.yaml

          runtimeClassName: "{{ .Values.runtimeClassName }}"
          {{- end }}
          {{- if and .Values.securityContext.enabled .Values.persistence.enabled }}
          securityContext:
            {{- omit .Values.securityContext "enabled" | toYaml | nindent 8 }}
          {{- end }}
          {{- if .Values.serviceAccount.create }}
          serviceAccountName: {{ .Values.serviceAccount.name }}
          {{- end }}
          containers:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 11 12:21:05 GMT 2024
    - 10.4K bytes
    - Click Count (0)
  10. tests/update_test.go

    		"Toys":      user2.Toys,
    		"Company":   user2.Company,
    		"Manager":   user2.Manager,
    		"Team":      user2.Team,
    		"Languages": user2.Languages,
    		"Friends":   user2.Friends,
    	}
    
    	DB.Model(&result).Omit("name", "updated_at").Updates(updateValues)
    
    	var result2 User
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 30.4K bytes
    - Click Count (0)
Back to Top